:root {  --bg-color: #121212;
  --text-color: #ffffff;
  --navbar-bg: black;
  --navbar-text: #cccccc;
  --navbar-text-hover: white;
  --card-bg: #202020;
  --card-text: white;
  --contact-bg: #333333;
  --contact-bg-hover: #252525;
  --edit-photo-bg:#5a5a5a;
  --secondary-button-border: white;
  --add-post-text-area-bg: #202020;
  --text-area-bg: #242424;
  --post-content-bg: #202020;
  --primary: hsl(243, 44%, 29%);
  --primary-hover: hsl(243, 44%, 23%);
  --my-messages: var(--primary);
  --request-messages: gray;
  --their-messages: #2f2f2f;
}.creatorPage {
    height: calc(100vh - 3rem);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
}

.CreatorContentContainer {
    /* border: dashed 3px orangered; */
    height: 100%;
    width: fit-content;
    overflow-y: auto;
    overflow: visible;
}

.profileHeader {
    width: 768px;
    height: fit-content;
    min-height: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner {
    width: 100%;
    height: 200px;
    color: black;
    object-fit: cover;
    border-radius: 0px 0px 5px 5px;
    box-shadow: 0px 1px 6px -2px #000000c9;
}

.profilePictureContainer {
    position: absolute;
    height: 130px;
    width: 130px;
    border-radius:
  50%;
    z-index: 2;
    top: 163px;
    left: 6px;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.profilePicture {
    height: 95%;
    width: 95%;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 1px 1px 5px -1px #00000054;
}

.profileDisplayName {
    position: absolute;
    height: fit-content;
    top: 202px;
    left: 138px;
    font-size: 1.5rem;
    font-weight: bold;
}
.profileDisplayName .verifiedIcon {
    width: 19px;
    height: 19px;
    display: inline-block;
    margin-left: 2px;
    vertical-align: middle;
    object-fit: contain;
    margin-bottom: 1.5px;
}
.profileUsername {
    position: absolute;
    height: fit-content;
    top: 227px;
    left: 139px;
    font-size: 0.9rem;
    font-weight: bold;
    color: gray;
}

.profileStatus {
    position: absolute;
    width: 17px;
    height: 17px;
    top: 265px;
    left: 106px;
    background-color: #35d063;
    font-size: 2rem;
    z-index: 2;
    border-radius: 50%;
    border: solid 2px var(--bg-color);
}

.lastSeen {
    position: absolute;
    height: fit-content;
    top: 264px;
    left: 124px;
}
.onlineSpan {
    position: absolute;
    height: fit-content;
    top: 264px;
    left: 124px;
}

.updateProfilePictureButton {
    position: absolute;
    width: 35px;
    height: 35px;
    top: 254px;
    left: 98px;
    z-index: 2;
}

.updateBannerButton {
    position: absolute;
    width: 35px;
    height: 35px;
    top: 163px;
    right: 3px;
    z-index: 2;
}

.profileNumbers {
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-right: 20px;
    font-size: 1.5rem;
}

.bio {
    height: fit-content;
    width: 90%;
    margin: auto;
    margin-top: 5rem;

}

.bioTextArea{
    border-radius: 5px;
    background-color: var(--add-post-text-area-bg);
    border: solid 1px var(--bg-color);
    width: 100%;
    outline: none;
    resize: none;
    color: var(--text-color);
    padding: 0.5rem;
}

.bioTextArea:focus {
    border: solid 1px var(--text-color);
}

.editBioZone {
    margin-top: 1rem;
    height: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.editBioButtonContainer {
    width: 50%;
    height: 2rem;
}
.cancelBioButtonContainer {
    width: 10rem;
    height: 2rem;
}
.saveBioButtonContainer {
    width: 10rem;
    height: 2rem;
}

.follow {
    width: 768px;
    height: fit-content;
    padding: 10px;
    gap: 5px;
    display: flex;
}

/* Creator stats bar */
.creatorStats {
    width: 768px;
    margin: 0 auto; /* center the bar horizontally */
    display: flex;
    justify-content: center; /* center icons horizontally */
    gap: 2rem;
    padding: 10px 0;
    align-items: flex-start;
}

.creatorStats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.creatorStats .nav-icon {
    width: 28px;
    height: 28px;
}

.creatorStats .statCount {
    margin-top: 4px;
    font-weight: bold;
}

.followButton, .messageButton {
    background-color: var(--primary);
    padding: 5px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    transition: all 0.1s;
    color: white;
    border: none;
    align-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

/* Ensure follow and unfollow have identical box sizing */
.followButton {
    border: 2px solid transparent; /* match unfollow border thickness without visual change */
}

.followButton:hover, .messageButton:hover {
    background-color: var(--primary-hover);
}

.unfollowButton {
    padding: 5px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    border: 2px solid var(--secondary-button-border);
    transition: all 0.1s;
    align-content: center;
    text-decoration: none;
    box-sizing: border-box;
    color: white;
}

.unfollowButton:hover {
    background-color: rgba(134, 134, 134, 0.1);
}

.addPost {
    padding: 1rem 0rem 1rem 0rem;
    width: 768px;
    height: fit-content;
}

.addPostForm {
    background-color: var(--add-post-text-area-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
}

.addPostBottomContainer {
    width: 100%;
    height: 2rem;
    display: flex;
}

.addPostBottomLeft {
    flex: 1;
    display: flex;
    gap: 10px;
}
.customFileButton{
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
    cursor: pointer;  
    font-size: 1.5rem;
    gap: 10px;
}

.addPostBottomRight {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.addPostButtonContainer{
    width: 20%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.submitText{
    color: var(--text-color);
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    background-color: var(--primary);
    padding: 2px;
    border-radius: 10%;
    font-weight: bold;
}

.addPostTextArea {
    padding: 5px;
    background-color: var(--add-post-text-area-bg);
    outline: none;
    resize: none;
    height: 5rem;
    font-size: 1.5rem;
    border: solid 1px var(--add-post-text-area-bg);
    border-radius: 10px;
    width: 100%;
    color: var(--text-color);
}
.addPostTextArea:focus {
    border: solid 1px var(--text-color);
}

.postMediaInput {
    display: none;
}


.creatorContent {
    width: 768px;
    height: fit-content;
}

/* Feed styles */
.feedContainer {
    width: 768px;
    margin-top: 1rem;
}

.feed {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feedItem {
    width: 420px; /* fixed width */
    max-width: 100%;
    margin-bottom: 1rem; /* gap between items */
    background-color: var(--post-content-bg);
    border-radius: 6px;
    box-shadow: 0 1px 6px -2px rgba(0,0,0,0.35);
    padding: 10px;
}

.feedItem:last-child {
    margin-bottom: 0; /* no extra space after last item */
}

.feedItemHeader {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ownerAvatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 1px 1px 5px -1px #00000054;
}

.ownerMeta {
    display: flex;
    flex-direction: column;
}

.ownerUsername {
    font-weight: bold;
}

.postedSince {
    font-size: 0.85rem;
    color: gray;
}

.feedItem .owner {
    font-weight: bold;
    margin-bottom: 6px;
}

.feedItem .media img,
.feedItem .media video {
    display: block;
    width: 100%;
    border-radius: 6px;
}

/* Feed preview tiles */
.feedItem .media .feed-media-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #0b0b0b;
    text-decoration: none;
}

.feedItem .media.media-grid .feed-media-link {
    aspect-ratio: 1 / 1;
}

.feedItem .media.media-grid img,
.feedItem .media.media-grid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feedItem .media.media-single img,
.feedItem .media.media-single video {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #000;
}

/* Inline feed Plyr fullscreen: show full frame (no cropping) */
.feedItem .plyr--fullscreen-active video.feed-video-inline,
.feedItem .plyr:fullscreen video.feed-video-inline,
.feedItem .plyr:-webkit-full-screen video.feed-video-inline {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    background: #000;
}

.feedItem .media .feed-video-preview {
    display: block;
}

/* Plyr inside Fancybox (lightbox videos) */
/* Fancybox v6 uses `.has-html5video .f-html` and CSS vars to size videos.
   Override those vars so the player always fits the viewport (controls visible). */
.fancybox__container {
    --f-video-width: min(1100px, 92vw);
    --f-video-height: calc(100vh - 220px);
}

@supports (height: 100dvh) {
    .fancybox__container {
        --f-video-height: calc(100dvh - 220px);
    }
}

/* Ensure Plyr wrapper never exceeds Fancybox's computed video box */
.fancybox__slide.has-html5video .f-html {
    max-width: var(--f-video-width);
    max-height: var(--f-video-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fancybox__slide.has-html5video .plyr {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
}

.fancybox__slide.has-html5video .plyr__video-wrapper {
    width: 100%;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Key change for portrait videos: fit by height, allow narrower width */
.fancybox__slide.has-html5video .plyr video,
.fancybox__slide.has-html5video video.f-html5video {
    height: 100% !important;
    width: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain;
}

.Post {
    margin: 1rem 0px 1rem 0px;
    padding: 10px;
    width: 100%;
    height: fit-content;
    background-color: var(--post-content-bg);
    border-radius: 3px;
}

.PostMetaDataArea {
    width: 100%;
    height: fit-content;
    display: flex;
}

.WhoPosted {
    flex: 1;
    display: flex;
}

.WhoPicture {
    width: 3rem;
    border-radius: 50%;
    box-shadow: 1px 1px 5px -1px #00000054;
}

.WhoUsername {
    margin-top: 2px;
    margin-left: 2px;
}

.WhenPosted {
    flex: 1;
    text-align: end;
}

.PostTextArea {
    width: 100%;
    height: fit-content;
}

.PostMediaArea {
    width: 100%;
    height: fit-content;
}

.PostFollowArea {
    width: 100%;
    height: fit-content;
}

.PostLikeArea {
    font-size: 2rem;
    display: flex;
    gap: 5px;
}

.noFeedText{
    font-weight: bold;
    color: #777777;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 1.8), -1px -1px 1px rgba(255, 255, 255, 0.10);
    font-size: 1.3rem;
}



/* Mobile styles */
@media (max-width: 768px) {
    .CreatorContentContainer {
        width: 100%;
    }

    .profileHeader {
        width: 100%;
    }

    .follow {
        width: 100%;
    }

    .creatorStats {
        width: 100%;
        justify-content: center;
    }

    .addPost {
        width: 100%;
    }

    .creatorContent {
        width: 100%;
    }

    .feedContainer {
        width: 100%;
    }

    .feedItem {
        width: 100%; /* full width on mobile */
    }
}*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: var(--bg-color);
  color: #e0e0e0;
  min-height: 100vh;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #6b6b6b transparent;
}

/* WebKit */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* 🔑 THIS is what Edge respects */
*::-webkit-scrollbar-button:single-button {
  width: 0;
  height: 0;
  background: transparent;
  display: none;
}

/* Track removed */
*::-webkit-scrollbar-track {
  background: transparent;
}

/* Thumb only */
*::-webkit-scrollbar-thumb {
  background-color: gray;
  border-radius: 100px;
}

.insetText {
  font-weight: bold;
  color: #777777;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 1.8), -1px -1px 1px rgba(255, 255, 255, 0.10);
  font-size: 1.3rem;
}

.marginAuto {
  margin: auto;
}

.unselectable {
  -webkit-user-select: none;
  /* Chrome, Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE10+ */
  user-select: none;
  /* Standard */
}/* Navbar styles */
.site-nav {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-end; /* desktop: items align to the right */
	gap: 16px;
	box-sizing: border-box;
	padding: 12px 16px;
	background: transparent; /* transparent navbar */
	border-bottom: 1px solid #2b2b2b; /* dark border */
    height: 3rem;
    position: relative; /* anchor dropdown to navbar */
}
.nav-item{
    width: 30px;
    height: 30px;
    color: rgb(186, 186, 186)
}
.nav-icon{
    width: 100%;
    height: 100%;
}
.nav-menu {
	position: relative;
}

.nav-menu {
	cursor: pointer;
}

.nav-dropdown {
	position: absolute;
	right: 10px;
	top: calc(100% + 6px);
	min-width: 140px;
	background: #111114;
	border-radius: 2px;
	padding: 6px;
	z-index: 1100;
	font-weight: bold;
}

.nav-dropdown-link{
	text-decoration: none;
	color: rgb(224, 224, 224);
}

.nav-dropdown.hidden { display: none; }

.nav-dropdown-text {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  outline: none;
}

.nav-login-btn {
	width: 100%;
	border: none;
	cursor: pointer;
}

/* Popup styling to match dark border aesthetic */
/* Popup styles moved to modules/popup.css */
.site-nav a {
	text-decoration: none;
	font-weight: 500;
}

/* Mobile: dock to bottom and spread items evenly */
@media (max-width: 768px) {
	.site-nav {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 1000;
		justify-content: space-evenly;
		border-top: 1px solid #2b2b2b;
		border-bottom: none;
		box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
	}

	.site-nav a {
		flex: 1 1 auto;
				justify-content: space-evenly; /* mobile: evenly spaced items */
	}

	/* Prevent content from being hidden behind fixed bottom nav */
	/* body {
		padding-bottom: 60px;
	} */

	/* On mobile, open the dropdown upwards from the bottom-docked nav */
	.nav-dropdown {
		top: auto;
		bottom: calc(100% + 6px);
		right: 0;
	}
}
.iframe-wrap {
	width: 320px;
	height: 340px;
	margin: 0 auto;
	overflow: hidden;
}
.iframe-wrap iframe {
	width: 400px;
	height: 480px;
	border: none;
	background: #111;
	border-radius: 8px;
	box-shadow: 0 2px 8px #0003;
	transform: scale(0.8);
	transform-origin: top left;
	display: block;
}
.bank-paid-btn {
	background: var(--primary, #8f4fff) !important;
	color: #fff !important;
	border: none;
	border-radius: 8px;
	font-size: 1.08rem;
	font-weight: 600;
	padding: 12px 32px;
	box-shadow: 0 2px 8px #0002;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
	outline: none;
}
.bank-paid-btn:hover, .bank-paid-btn:focus {
	background: var(--primary-hover, #a97cff) !important;
	color: #fff !important;
	box-shadow: 0 4px 16px #0003;
}
/* Payment Method Modal Styles */
.payment-modal {
	min-width: 320px;
	max-width: 420px;
	color: #f3f3f3;
	border-radius: 12px;
}
.payment-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 16px;
	color: #ffd166;
	text-align: center;
}
.payment-plan-summary {
	font-size: 1.5rem;
    font-weight: bold;
	color: #bbb;
	margin-bottom: 18px;
	text-align: center;
}
.payment-methods-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.payment-method-row {
	display: flex;
	justify-content: center;
}
.payment-method-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 340px;
	padding: 16px 20px;
	background-color: #19191d;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 1.08rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
	outline: none;
	gap: 18px;
}
.payment-method-btn:hover, .payment-method-btn:focus {
	background-color: #353535;
}
.payment-method-label {
	font-size: 1.08rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}
.payment-method-icon {
	width: 44px;
	height: 44px;
	margin-left: 18px;
	display: block;
	align-self: center;
}
.payment-methods-none {
	color: #999;
	text-align: center;
	margin-top: 16px;
	font-size: 1rem;
}
:root {
  --plyr-color-main: #7c5cff;
  --plyr-color-main: #5737d9;
}/* Popup modal positioning and overlay */
.popup-root {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000; /* actual stacking is set in JS, this is a baseline */
}

.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.popup-modal {
  width: fit-content;
  height: fit-content;
  position: relative;
  background: #111114;
  color: #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  max-width: 92vw;
  max-height: 90vh;
  overflow: auto;
  z-index: 1; /* above overlay within root */
  padding: 16px;
  border: 1px solid #1f2937; /* dark border to match theme */
  transition: height 0.2s ease; /* smooth if height changes */
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.popup-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.popup-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.popup-content {
  font-size: 14px;
}

/* Dark-themed connection popup styles */
.connection-popup {
  position: relative; /* allows absolute tab-content for stable height */
}

.connection-popup .tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.connection-popup .tab-btn {
  background: #0f172a; /* deep slate */
  color: #e5e7eb;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

.connection-popup .tab-btn.active {
  background: #111827; /* slightly lighter when active */
  border-color: #374151;
}

/* Ensure stable overall size when switching tabs */
.connection-popup {
  min-height: 260px; /* baseline height to prevent jump; adjust as needed */
  width: 300px;
}

.connection-popup .tab-content.hidden {
  display: none;
}

.connection-popup input[type="text"],
.connection-popup input[type="email"],
.connection-popup input[type="password"] {
  width: 100%;
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  outline: none;
}

.connection-popup input[type="text"]:focus,
.connection-popup input[type="email"]:focus,
.connection-popup input[type="password"]:focus {
  border-color: #374151;
  box-shadow: 0 0 0 2px rgba(55, 65, 81, 0.35);
}

.connection-popup .btn.btn-primary {
  background: var(--primary, #2563eb);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

.connection-popup .btn.btn-primary:hover {
  background: var(--primary-hover, #1e40af);
}

.connection-popup .btn.btn-secondary {
  background: #374151;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

.connection-popup #popup-login-status,
.connection-popup #popup-signup-status {
  margin-top: 8px;
  font-size: 0.9rem;
}

.connection-popup #popup-login-status.info,
.connection-popup #popup-signup-status.info { color: #93c5fd; }
.connection-popup #popup-login-status.success,
.connection-popup #popup-signup-status.success { color: #34d399; }
.connection-popup #popup-login-status.error,
.connection-popup #popup-signup-status.error { color: #f87171; }

@media (max-width: 480px) {
  .popup-modal {
    width: 95vw;
    max-height: 88vh;
    padding: 12px;
    border-radius: 8px;
  }
}

/* Popup styling: enforce dark theme override and cohesive header */
.popup-root .popup-modal {
  background: #111114;
  color: #e5e7eb;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 12px;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1f2937;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.popup-title { color: #e5e7eb; font-weight: 600; }
.popup-close { background: transparent; border: none; font-size: 20px; cursor: pointer; color: #9ca3af; }
.profilePage{
  max-width: 900px;
  margin: 0 auto;
  padding: 18px;
  color: var(--text-color, #eaeaea);
}
.profilePage h2{ font-size:1.6rem; margin-bottom:8px; }
.field{ margin:12px 0; display:flex; flex-direction:column; gap:8px; }
.status-msg{ margin-top:6px; font-size:0.95rem; color:#bbb; }
.profile-picture-preview{ display:block; max-width:200px; max-height:200px; object-fit:cover; border-radius:6px; margin-bottom:8px; }
.profile-banner-preview{ display:block; width:100%; max-width:480px; max-height:200px; object-fit:cover; border-radius:6px; margin-bottom:8px; }
.bio-textarea{ width:100%; min-height:120px; resize:vertical; padding:10px; border-radius:6px; border:1px solid #2a2a2a; background:#111; color:#fff; }
.note{ opacity:0.9; }
.password-form .field{ max-width:420px; }
.password-form input{ padding:8px; border-radius:6px; border:1px solid #2a2a2a; background:var(--input-bg,#0f0f0f); color:var(--text-color,#fff); }
.btn{ padding:8px 12px; border-radius:8px; border:none; background:var(--primary,#8f4fff); color:#fff; cursor:pointer; }
.btn:hover{ background:var(--primary-hover,#a97cff); }
.btn-danger{ background:#7f1d1d; }
.btn-danger:hover{ background:#9b2a2a; }
.subscription-table{ width:100%; border-collapse:collapse; margin:10px 0; }
.subscription-table th, .subscription-table td{ text-align:left; padding:8px; border-bottom:1px solid #1f1f1f; }
.inline-label{ display:inline-flex; gap:6px; align-items:center; }
.inline-delete{ display:inline; }
.add-plan-form{ display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; }
.error{ color:#f87171; }
.success{ color:#34d399; }
@media (max-width:720px){
  .subscription-table th, .subscription-table td{ padding:6px; }
}
.subscription-plans-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Generic subscription modal (used by chat payment popups for consistent visuals) */
.subscription-modal {
	min-width: 320px;
	max-width: 440px;
	color: #f3f3f3;
	border-radius: 12px;
}

.subscription-plan-btn {
	width: 100%;
	padding: 10px 0;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	background-color: var(--primary);
    color: white;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 8px #0002;
	outline: none;
}
.subscription-plan-btn:hover, .subscription-plan-btn:focus {
	background-color: var(--primary-hover);
	box-shadow: 0 4px 16px #0003;
}
/* Subscription Plan Selection Popup */
.subscription-plans-modal {
	min-width: 320px;
	max-width: 420px;
	color: #f3f3f3;
}
.subscription-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 18px;
	color: #ffd166;
	text-align: center;
}
.subscription-plans-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.subscription-plan-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid #23242a;
	background: #20222a;
	border-radius: 8px;
	transition: background 0.2s;
}
.subscription-plan-row:last-child {
	border-bottom: none;
}
.subscription-plan-row:hover {
	background: #23242a;
}
.subscription-plan-label {
	color: #f3f3f3;
	font-size: 1.05rem;
	font-family: monospace;
}
