/* ==========================================================================
   Nikkie X - CSS Variables & Global Resets
   ========================================================================== */

:root {
  --bg-primary: #000000;
  --bg-secondary: #000000;
  
  --text-main: #ffffff;
  --text-muted: #9ba3be;
  --text-dim: #6c748c;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --emerald: #10b981;
  --rose: #f43f5e;
}

/* Hide reCAPTCHA badge (Firebase still runs it invisibly for security) */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fix autofill white background in Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #111 inset !important;
  -webkit-text-fill-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
}

body {
  background-color: #000000 !important;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.main-content {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem;
}

.app-view {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.app-view.active {
  display: flex;
}

/* Toast Container */
#toast-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  width: 100%;
}

.toast {
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: slideInLeft 0.3s ease forwards;
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success i { color: var(--emerald); }
.toast.error i { color: var(--rose); }
.toast.info i { color: #dcb33c; }

.toast span { font-size: 0.85rem; font-weight: 500; }
.toast-close { margin-left: auto; cursor: pointer; color: var(--text-dim); }
.toast-close:hover { color: white; }

/* ==========================================================================
   Figma Login View Styles
   ========================================================================== */

#login-view {
  background-color: #000000 !important;
  min-height: calc(100vh - 50px);
  margin: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem 3rem;
}

#login-view.active {
  display: flex;
}

.login-wrapper {
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-logo-header {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-align: center;
}

.logo-gold {
  color: #dcb33c;
}

.logo-white {
  color: #ffffff;
}

.login-campaign-slider-wrapper {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 2.5rem;
  padding: 0.5rem 0;
}

.login-campaign-slider-wrapper::-webkit-scrollbar {
  display: none;
}

.login-campaign-slider {
  display: flex;
  gap: 1rem;
  padding: 0 calc(50vw - 220px);
  width: max-content;
}

@media (max-width: 480px) {
  .login-campaign-slider {
    padding: 0 1.5rem;
  }
}

.login-slider-card {
  width: 185px;
  height: 270px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-duration-badge, .card-payout-badge {
  position: absolute;
  top: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 12px;
  z-index: 2;
}

.card-duration-badge {
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-payout-badge {
  right: 12px;
  background: #dcb33c;
  color: #000000;
}

.slider-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-card-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  padding: 1.25rem 1rem 1rem;
  z-index: 2;
}

.slider-card-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slider-card-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.slider-card-details p i {
  margin-right: 2px;
}

.login-tagline {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2rem;
  width: 100%;
  text-align: left;
}

.text-gold {
  color: #dcb33c;
}

.login-form-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-input-row {
  display: flex;
  width: 100%;
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.login-input-row:focus-within {
  border-color: #dcb33c;
  box-shadow: 0 0 10px rgba(220, 179, 60, 0.15);
}

.country-code-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.flag-icon {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

.login-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.95rem;
  padding: 1rem 0.75rem;
}

.referral-box {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.referral-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: left;
}

.referral-input-group {
  display: flex;
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.referral-input-group:focus-within {
  border-color: #dcb33c;
}

.referral-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.95rem;
  padding: 1rem 0.75rem;
}

.btn-apply {
  background: transparent;
  border: none;
  color: #dcb33c;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-apply:hover {
  color: #ecc24b;
}

.referral-helper {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  text-align: left;
}

.custom-checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: left;
}

.custom-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: var(--transition);
}

.custom-checkbox-container input:checked ~ .checkmark {
  background-color: #dcb33c;
  border-color: #dcb33c;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox-container .checkmark:after {
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #000000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.terms-text a {
  color: #dcb33c;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.btn-gold-login {
  width: 100%;
  background: #dcb33c;
  color: #000000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.btn-gold-login:hover {
  background: #ecc24b;
  box-shadow: 0 4px 15px rgba(220, 179, 60, 0.3);
}

.btn-gold-login i {
  transition: var(--transition);
}

.btn-gold-login:hover i {
  transform: translateX(4px);
}

.login-divider-row {
  width: 100%;
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
}

.divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
}

.btn-google-login {
  width: 100%;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.btn-google-login:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.google-logo-icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Figma OTP Verification View Styles
   ========================================================================== */

#otp-view {
  background-color: #000000 !important;
  min-height: calc(100vh - 50px);
  margin: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem 3rem;
}

#otp-view.active {
  display: flex;
}

.otp-header-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  margin-bottom: 3.5rem;
}

.btn-back-login {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-back-login:hover {
  background: rgba(255, 255, 255, 0.08);
}

.otp-content-container {
  width: 100%;
}

.otp-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: left;
}

.otp-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  text-align: left;
  line-height: 1.5;
}

.otp-input-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: left;
}

.otp-input-group {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 2rem;
}

.otp-box-input {
  width: 56px;
  height: 62px;
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: var(--transition);
}

.otp-box-input:focus {
  border-color: #dcb33c;
  box-shadow: 0 0 10px rgba(220, 179, 60, 0.15);
}

.resend-timer-row {
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
}

.otp-footer-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 2.5rem;
  line-height: 1.4;
}

.resend-active-link {
  color: #dcb33c;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   Figma Welcome Guide View Styles
   ========================================================================== */

#guide-view {
  background-color: #000000 !important;
  min-height: calc(100vh - 50px);
  margin: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem 3rem;
}

#guide-view.active {
  display: flex;
}

.guide-card-box {
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.5rem 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.guide-card-item {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: var(--transition);
}

.guide-card-item:hover {
  transform: translateX(4px);
}

.guide-card-item:last-child {
  border-bottom: none;
}

.guide-card-circle-check {
  color: #dcb33c; /* Gold checkmark check circles */
  font-size: 1.5rem;
  margin-right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-card-text {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 500;
  font-family: var(--font-body);
  flex: 1;
  text-align: left;
}

.guide-card-arrow {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: var(--transition);
}

.guide-card-item:hover .guide-card-arrow {
  color: #ffffff;
  transform: translateX(2px);
}

/* ==========================================================================
   Figma Connect Socials View Styles
   ========================================================================== */

#socials-view {
  background-color: #000000 !important;
  min-height: calc(100vh - 50px);
  margin: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem 3rem;
}

#socials-view.active {
  display: flex;
}

.socials-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2.5rem;
}

.social-connect-btn {
  width: 100%;
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.social-connect-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #1c1d24;
}

.social-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-right: 1rem;
}

.instagram-btn .social-icon-wrapper {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}

.youtube-btn .social-icon-wrapper {
  background: #ff0000;
  color: #ffffff;
}

.tiktok-btn .social-icon-wrapper {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.facebook-btn .social-icon-wrapper {
  background: #1877f2;
  color: #ffffff;
}

.social-btn-text {
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  flex: 1;
  text-align: left;
}

.social-btn-arrow {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-connect-btn:hover .social-btn-arrow {
  color: #ffffff;
  transform: translateX(3px);
}

/* Security Notice Box */
.security-info-box {
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 2rem;
  text-align: left;
}

.security-shield-icon {
  color: #dcb33c;
  font-size: 1.4rem;
  margin-top: 0.15rem;
}

.security-info-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.security-info-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Skip Socials Button */
.btn-skip-socials {
  width: 100%;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.95rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-skip-socials:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  background: transparent !important;
}

.btn-skip-socials:not(:disabled) {
  background: #dcb33c !important;
  color: #000000 !important;
  border-color: #dcb33c !important;
  box-shadow: 0 4px 15px rgba(220, 179, 60, 0.2);
}

.btn-skip-socials:not(:disabled):hover {
  background: #ecc24b !important;
  border-color: #ecc24b !important;
}

.skip-helper-caption {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  text-align: center;
}

/* YouTube link drawer */
.youtube-drawer-panel {
  background: #1c1d24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 1.25rem;
  margin-top: -12px;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: slideDownFade 0.3s ease-out forwards;
}

.youtube-drawer-panel.hidden {
  display: none !important;
}

.youtube-drawer-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.youtube-drawer-row input {
  flex: 1;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #ffffff;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.youtube-drawer-row input:focus {
  border-color: #dcb33c;
}

.btn-drawer-link {
  background: #dcb33c;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-drawer-link:hover {
  background: #ecc24b;
}

.drawer-helper-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: left;
}

.youtube-connected-badge {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: var(--emerald) !important;
}

.youtube-connected-badge .social-icon-wrapper {
  background: var(--emerald) !important;
}

/* ==========================================================================
   Figma YouTube Dashboard View Styles
   ========================================================================== */

#dashboard-view {
  background-color: #000000 !important;
  min-height: calc(100vh - 50px);
  margin: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem 1rem 3rem;
}

#dashboard-view.active {
  display: flex;
}

/* Banner Card Layout */
.dashboard-banner-card {
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.channel-banner-image-container {
  height: 120px;
  width: 100%;
  position: relative;
  background: #1e2029;
}

.channel-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(20,21,26,0.95));
}

.channel-profile-row {
  display: flex;
  padding: 0 1.25rem 1rem;
  margin-top: -36px;
  position: relative;
  z-index: 2;
  gap: 1rem;
  align-items: flex-end;
}

.channel-avatar-img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #dcb33c;
  background: #14151a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.channel-identity-meta {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.2rem;
}

.channel-title-lbl {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.channel-handle-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.channel-badge-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.badge-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.channel-description-box {
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.channel-description-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Core stats summary grid */
.overview-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.overview-stat-box {
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 0.9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.overview-stat-box .stat-num {
  font-size: 1.2rem;
  font-weight: 750;
  color: #ffffff;
  font-family: var(--font-heading);
}

.overview-stat-box .stat-lbl {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Calculated metrics */
.dashboard-section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 750;
  color: #ffffff;
  margin: 1.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-section-title i {
  color: #dcb33c;
  font-size: 1rem;
}

.calculated-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1.75rem;
}

@media (max-width: 480px) {
  .calculated-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-card {
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1rem 0.85rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 750;
  color: #ffffff;
  font-family: var(--font-heading);
}

.metric-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* OAuth prompt card */
.oauth-connection-card {
  background: linear-gradient(135deg, #181921 0%, #14151a 100%);
  border: 1px solid rgba(220, 179, 60, 0.15);
  border-radius: 18px;
  padding: 1.25rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.oauth-cta-content h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
}

.oauth-cta-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.btn-connect-oauth-youtube {
  background: #dcb33c;
  color: #000000;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-connect-oauth-youtube:hover {
  background: #ecc24b;
  transform: translateY(-1px);
}

/* Private Dashboard views styles */
.private-accent {
  border-color: rgba(220, 179, 60, 0.25) !important;
  background: linear-gradient(to bottom, #191b22, #14151a) !important;
}

.private-accent .metric-lbl {
  color: #dcb33c;
}

.demographics-grid-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

@media (max-width: 500px) {
  .demographics-grid-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.dashboard-block-card {
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 1.25rem;
  width: 100%;
}

.block-card-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.block-card-title i {
  color: #dcb33c;
  font-size: 0.92rem;
}

.demographics-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* country, flag and lists */
.country-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.country-flag-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 0.35rem;
}

.country-flag-row .flag-icon {
  width: 18px;
  height: 13px;
  border-radius: 1px;
  object-fit: cover;
  margin-right: 0.5rem;
}

.country-name {
  font-size: 0.82rem;
  color: #ffffff;
  font-weight: 500;
  flex: 1;
  text-align: left;
}

.country-percent {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.country-progress-bar-bg {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
}

.country-progress-bar-fill {
  height: 100%;
  background: #dcb33c;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Bar Chart Styles */
.views-bar-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 130px;
  width: 100%;
  padding-top: 0.5rem;
}

.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-fill {
  width: 15px;
  background: linear-gradient(to top, #cda22c, #ecc24b);
  border-radius: 4px 4px 0 0;
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 4px;
}

.chart-col span {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Recent Videos scroll styles */
.recent-videos-scroll-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.video-item-card {
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 0.85rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition);
}

.video-item-card:hover {
  background: #1c1d24;
  border-color: rgba(255, 255, 255, 0.1);
}

.video-thumb-container {
  width: 110px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #1e2029;
  flex-shrink: 0;
}

.video-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-duration-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.8);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.video-details-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.video-title-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
  text-align: left;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  text-align: left;
}

.video-stats-counters {
  display: flex;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.video-stats-counters span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.video-stats-counters i {
  font-size: 0.75rem;
}

/* Upcoming buttons styles */
.upcoming-btn {
  opacity: 0.55;
  cursor: not-allowed !important;
  pointer-events: none;
}

.upcoming-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Global Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  border-top: 1px solid #1a1a1a;
  display: flex;
  justify-content: space-around;
  padding: 0.75rem 0;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #666;
  text-decoration: none;
  font-size: 0.7rem;
  gap: 0.25rem;
}

.nav-item i {
  font-size: 1.25rem;
}

.nav-item.active {
  color: #ffffff;
}

 / *   P r o f i l e   D e t a i l s   V i e w   S t y l e s   * / 
 . p r o f i l e - f o r m - c o n t a i n e r   { 
     d i s p l a y :   f l e x ; 
     f l e x - d i r e c t i o n :   c o l u m n ; 
     g a p :   1 5 p x ; 
     w i d t h :   1 0 0 % ; 
     m a x - w i d t h :   4 0 0 p x ; 
     m a r g i n :   0   a u t o ; 
     t e x t - a l i g n :   l e f t ; 
 } 
 . f o r m - s e c t i o n - t i t l e   { 
     c o l o r :   # d c b 3 3 c ; 
     f o n t - f a m i l y :   v a r ( - - f o n t - h e a d i n g ) ; 
     f o n t - s i z e :   1 . 2 r e m ; 
     m a r g i n - t o p :   1 0 p x ; 
     m a r g i n - b o t t o m :   5 p x ; 
     b o r d e r - b o t t o m :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
     p a d d i n g - b o t t o m :   5 p x ; 
 } 
 . i n p u t - g r o u p   { 
     d i s p l a y :   f l e x ; 
     f l e x - d i r e c t i o n :   c o l u m n ; 
     g a p :   5 p x ; 
 } 
 . i n p u t - g r o u p   l a b e l   { 
     f o n t - s i z e :   0 . 8 5 r e m ; 
     c o l o r :   # a 0 a 0 a 0 ; 
     f o n t - w e i g h t :   5 0 0 ; 
 } 
 . i n p u t - g r o u p   i n p u t ,   . i n p u t - g r o u p   t e x t a r e a ,   . i n p u t - g r o u p   s e l e c t   { 
     b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ; 
     b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
     p a d d i n g :   1 2 p x ; 
     b o r d e r - r a d i u s :   8 p x ; 
     c o l o r :   w h i t e ; 
     f o n t - f a m i l y :   v a r ( - - f o n t - b o d y ) ; 
     f o n t - s i z e :   0 . 9 5 r e m ; 
 } 
 . i n p u t - g r o u p   i n p u t : f o c u s ,   . i n p u t - g r o u p   t e x t a r e a : f o c u s ,   . i n p u t - g r o u p   s e l e c t : f o c u s   { 
     b o r d e r - c o l o r :   # d c b 3 3 c ; 
     o u t l i n e :   n o n e ; 
 } 
 . i n p u t - r o w - f l e x   { 
     d i s p l a y :   f l e x ; 
     w i d t h :   1 0 0 % ; 
 } 
 . w - 5 0   { 
     w i d t h :   5 0 % ; 
 } 
 . m t - 4   {   m a r g i n - t o p :   1 r e m ;   } 
  
 