:root {
  --primary: #7c3aed;
  /* violet-600 */
  --primary-light: #8b5cf6;
  /* violet-500 */
  --bg-color: #ffffff;
  /* White day background */
  --card-bg: #ffffff;
  --text-main: #1f2937;
  /* gray-800 */
  --text-secondary: #6b7280;
  /* gray-500 */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-full: 9999px;
}

.night-mode {
  --bg-color: #111827;
  /* gray-900 */
  --card-bg: #1f2937;
  /* gray-800 */
  --text-main: #f3f4f6;
  /* gray-100 */
  --text-secondary: #9ca3af;
  /* gray-400 */
  --shadow-sm: 0 1px 2px 0 rgb(255 255 255 / 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  color: var(--text-main);
  min-height: 100vh;
}

img,
video {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

/* Layout Container */
.app-container {
  max-width: 480px;
  /* Mobile first constrained width for desktop */
  margin: 0 auto;
  background-color: var(--bg-color);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding-bottom: 80px;
  /* Space for bottom nav */
}

/* Typography Utilities */
.text-primary {
  color: var(--primary);
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}.header {
    padding: 16px 20px;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.logo {
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 0;
}

.profile-section {
    position: relative;
}

.profile-icon-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.profile-icon-container:active {
    transform: scale(0.95);
}

.header-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-profile-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 200px;
    padding: 8px;
    z-index: 100;
    border: 1px solid #f3f4f6;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: #f9fafb;
}

.dropdown-item:active {
    background-color: #f3f4f6;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #f3f4f6;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    gap: 12px;
}

.search-input {
    background: transparent;
    flex: 1;
    font-size: 16px;
    color: var(--text-main);
}

.search-input::placeholder {
    color: #9ca3af;
}.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: var(--primary);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 24px;
    /* Extra padding for safe area */
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.nav-item.active {
    color: white;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
}.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 360px;
    border-radius: 20px;
    padding: 30px 24px;
    position: relative;
    text-align: center;
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.modal-header {
    margin-bottom: 24px;
}

.icon-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.price-tag {
    background: #ecfdf5;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px dashed #10b981;
}

.currency {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    vertical-align: top;
    line-height: 24px;
}

.amount {
    font-size: 28px;
    font-weight: 800;
    color: #059669;
    margin: 0 4px;
}

.duration {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.phone-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.phone-input:focus {
    border-color: #10b981;
    outline: none;
}

.pay-btn {
    width: 100%;
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.pay-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pay-btn:active {
    transform: scale(0.98);
}

.secure-note {
    margin-top: 16px;
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Success State */
.success-content {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.success-icon-wrapper {
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-content h2 {
    color: white;
    margin-bottom: 8px;
}

.success-content p {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}.main-content {
  flex: 1;
  overflow-y: auto;
  /* padding-bottom: 80px;  Removed fixed padding here, handled by components */
}

.main-content.no-padding {
  padding: 0;
  overflow: hidden;
  /* Profile handles its own scroll if needed, or let it scroll */
}

/* Suspended Go Live Button */
.suspended-live-btn {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: linear-gradient(135deg, #FF512F 0%, #DD2476 100%);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(221, 36, 118, 0.4);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Captivating Ripple Effect */
.suspended-live-btn::before,
.suspended-live-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(221, 36, 118, 0.6);
  border-radius: 30px;
  transform: translate(-50%, -50%) scale(1);
  z-index: -1;
  animation: ripple 2s infinite cubic-bezier(0, 0, 0.2, 1);
}

.suspended-live-btn::after {
  animation-delay: 1s;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Ensure Button stays within max-width container on desktop */
@media (min-width: 480px) {
  .suspended-live-btn {
    right: max(20px, calc(50% - 240px + 20px));
  }
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  color: var(--text-secondary);
  font-weight: 500;
}.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.story-upload-container {
    background: var(--bg-color);
    width: 90%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.upload-content {
    padding: 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.file-dropzone {
    flex: 1;
    border: 2px dashed #e5e7eb;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 250px;
}

.file-dropzone:hover {
    background: #f9fafb;
}

.dropzone-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dropzone-content p {
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.dropzone-content span {
    font-size: 12px;
    color: var(--text-secondary);
}

.preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-media {
    width: 100%;
    max-height: 400px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: black;
}

.change-file-btn {
    align-self: center;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.post-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s;
}

.post-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.night-mode .file-dropzone {
    border-color: #374151;
}

.night-mode .file-dropzone:hover {
    background: #1f2937;
}.story-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: black;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-view-container {
    height: 100%;
    width: 100%;
    max-width: 480px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.story-progress-container {
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.progress-bar-bg {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: white;
    transition: width 0.05s linear;
}

.view-header {
    position: absolute;
    top: 40px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.view-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-user-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid white;
}

.view-user-name {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-size: 14px;
}

.view-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    cursor: pointer;
}

.story-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    cursor: pointer;
}

.nav-btn:disabled {
    opacity: 0.3;
}

.nav-btn.prev {
    left: -60px;
}

.nav-btn.next {
    right: -60px;
}

@media (max-width: 600px) {
    .nav-btn {
        display: none;
    }
}.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 24px;
}

.modal-content p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.gender-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.gender-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.gender-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.gender-btn.active {
    border-color: #ec4899;
    background: #fdf2f8;
    color: #ec4899;
}

.confirm-btn {
    width: 100%;
    padding: 14px;
    background: #ec4899;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.confirm-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.confirm-btn:hover:not(:disabled) {
    background: #db2777;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.sub-text {
    font-size: 14px;
    color: #9ca3af;
    margin-top: -10px;
    margin-bottom: 25px;
}

.modal-actions.vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Night Mode Support */
body.night-mode .modal-content {
    background: #1f2937;
    color: #f3f4f6;
}

body.night-mode .modal-content h2 {
    color: #f3f4f6;
}

body.night-mode .modal-content p {
    color: #9ca3af;
}

body.night-mode .gender-btn {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

body.night-mode .gender-btn:hover {
    background: #4b5563;
}

body.night-mode .gender-btn.active {
    background: #831843;
    border-color: #ec4899;
    color: #fbcfe8;
}

/* Phone Modal Specifics */
.phone-modal {
    max-width: 450px;
}

.phone-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.country-select {
    width: 140px;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    /* appearance: none; */
}

.phone-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.phone-input:focus {
    border-color: #ec4899;
}

.error-text {
    color: #ef4444 !important;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 20px;
    text-align: left;
    margin-left: 5px;
}

body.night-mode .country-select,
body.night-mode .phone-input {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

body.night-mode .country-select:focus,
body.night-mode .phone-input:focus {
    border-color: #ec4899;
}