/**
 * Facebook Messenger Bulk Sender - Stylesheet
 * Clean, responsive design for admin dashboard
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh;
    margin: 0;
    background: #050f2c;
    color: #fff;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Login Header Navigation */
.login-header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 15, 44, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(123, 201, 255, 0.2);
    padding: 15px 0;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.nav-logo i {
    font-size: 24px;
    color: #7bc9ff;
    animation: float 3s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7bc9ff;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #7bc9ff;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Desktop: Show regular nav links, hide drawer items */
.nav-menu-item {
    display: none;
    /* Hidden on desktop */
}

.nav-menu-header {
    display: none;
    /* Hidden on desktop */
}

/* Desktop nav menu items - keep original style */
.nav-menu>a:not(.nav-menu-item) {
    display: inline-block;
}

/* Dashboard Nav Menu */
.dashboard-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(5, 15, 44, 0.98) 0%, rgba(6, 16, 45, 0.98) 100%);
    backdrop-filter: blur(20px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding-top: 70px;
    overflow-y: auto;
    border-left: 1px solid rgba(123, 201, 255, 0.2);
}

.dashboard-nav-menu.active {
    right: 0;
}

.dashboard-nav-menu .nav-menu-header {
    padding: 25px 20px;
    border-bottom: 2px solid rgba(123, 201, 255, 0.2);
}

.dashboard-nav-menu .nav-menu-section {
    padding: 20px;
    border-bottom: 2px solid rgba(123, 201, 255, 0.2);
    margin-bottom: 10px;
}

.dashboard-nav-menu .nav-menu-section-title {
    color: #7bc9ff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.dashboard-nav-menu .nav-menu-page-selector-wrapper {
    margin-bottom: 10px;
}

.dashboard-nav-menu .page-selector-mobile {
    width: 100%;
    background: rgba(123, 201, 255, 0.15);
    border: 2px solid rgba(123, 201, 255, 0.3);
    border-radius: 12px;
    color: white;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dashboard-nav-menu .page-selector-mobile:focus {
    outline: none;
    background: rgba(123, 201, 255, 0.25);
    border-color: rgba(123, 201, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(123, 201, 255, 0.2);
}

.dashboard-nav-menu .page-selector-mobile option {
    background: #4a5568;
    color: white;
    padding: 12px;
}

.dashboard-nav-menu .nav-menu-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.5;
}

.dashboard-nav-menu .nav-menu-item-logout {
    margin-top: auto;
    border-top: 2px solid rgba(123, 201, 255, 0.2);
    padding-top: 20px;
    color: rgba(255, 100, 100, 0.9);
}

.dashboard-nav-menu .nav-menu-item-logout:hover {
    background: rgba(255, 100, 100, 0.15);
    color: #ff6464;
}

.dashboard-nav-menu .nav-menu-item-logout i {
    color: #ff6464;
}

.dashboard-nav-toggle {
    display: none;
}

/* Desktop only elements */
.desktop-only {
    display: block;
}

/* Mobile only elements */
.mobile-only {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #7bc9ff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


.login-hero {
    position: relative;
    min-height: 100vh;
    padding: 100px min(6vw, 80px) 60px;
    background: radial-gradient(circle at 20% 20%, rgba(70, 148, 255, 0.4), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(118, 75, 162, 0.35), transparent 40%),
        linear-gradient(135deg, #051537 0%, #0b1c48 30%, #1a2672 70%, #1e3aa9 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(3, 12, 36, 0.9), rgba(11, 57, 84, 0.7));
    z-index: 1;
}

.hero-pulse {
    position: absolute;
    width: 1200px;
    height: 1200px;
    top: -600px;
    right: -300px;
    background: radial-gradient(circle, rgba(88, 129, 255, 0.25) 0%, transparent 65%);
    animation: heroPulse 10s infinite alternate;
    z-index: 0;
}

@keyframes heroPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.floating-sphere {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(79, 136, 255, 0.3));
    filter: blur(0px);
    opacity: 0.2;
    z-index: 0;
    animation: floatSphere 14s ease-in-out infinite;
}

.sphere-left {
    top: 15%;
    left: 5%;
}

.sphere-right {
    bottom: 10%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes floatSphere {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }

    25% {
        transform: translateY(-40px) translateX(20px) scale(1.1);
    }

    50% {
        transform: translateY(-30px) translateX(15px) scale(0.9);
    }

    75% {
        transform: translateY(-50px) translateX(-10px) scale(1.05);
    }

    100% {
        transform: translateY(0) translateX(0) scale(1);
    }
}

/* Animated particles */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(123, 201, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
    box-shadow: 0 0 10px rgba(123, 201, 255, 0.5);
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 15s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 14s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 16s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 2.5s;
    animation-duration: 13s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 4.5s;
    animation-duration: 17s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 1.5s;
    animation-duration: 19s;
}

.particle:nth-child(10) {
    left: 15%;
    animation-delay: 3.5s;
    animation-duration: 11s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(100px) scale(1);
        opacity: 0;
    }
}

.login-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
}

.login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 45px;
    align-items: center;
}

.login-info {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-info h1 {
    font-size: clamp(32px, 4vw, 52px);
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.1;
    animation: slideInLeft 1s ease-out 0.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-info h1 span {
    color: #7bc9ff;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(123, 201, 255, 0.5), 0 0 20px rgba(123, 201, 255, 0.3);
    }

    to {
        text-shadow: 0 0 20px rgba(123, 201, 255, 0.8), 0 0 30px rgba(123, 201, 255, 0.5), 0 0 40px rgba(123, 201, 255, 0.3);
    }
}

.login-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    max-width: 550px;
    margin-bottom: 25px;
}

.login-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
    border: 1px solid rgba(123, 201, 255, 0.3);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(123, 201, 255, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(123, 201, 255, 0);
    }
}

.login-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    gap: 15px;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out both;
}

.highlight-card:nth-child(1) {
    animation-delay: 0.3s;
}

.highlight-card:nth-child(2) {
    animation-delay: 0.5s;
}

.highlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(123, 201, 255, 0.6);
    box-shadow: 0 10px 30px rgba(123, 201, 255, 0.2);
}

.highlight-card .icon-circle {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(123, 201, 255, 0.4), rgba(59, 130, 246, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.highlight-card strong {
    font-size: 15px;
}

.highlight-card p {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.login-bullets {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-bullets li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    animation: slideInRight 0.6s ease-out both;
    transition: transform 0.2s ease;
}

.login-bullets li:nth-child(1) {
    animation-delay: 0.4s;
}

.login-bullets li:nth-child(2) {
    animation-delay: 0.6s;
}

.login-bullets li:nth-child(3) {
    animation-delay: 0.8s;
}

.login-bullets li:hover {
    transform: translateX(10px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-bullets i {
    color: #7bc9ff;
    animation: checkPulse 1.5s ease-in-out infinite;
}

@keyframes checkPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-card {
    flex: 1 1 180px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out both;
    cursor: pointer;
}

.stat-card:nth-child(1) {
    animation-delay: 0.6s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.8s;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(123, 201, 255, 0.3);
    box-shadow: 0 10px 30px rgba(123, 201, 255, 0.2);
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #7bc9ff;
    animation: numberCount 1s ease-out;
}

@keyframes numberCount {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.login-card {
    background: rgba(6, 16, 45, 0.9);
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 0 25px 60px rgba(5, 12, 36, 0.6);
    border: 1px solid rgba(123, 201, 255, 0.25);
    backdrop-filter: blur(12px);
    animation: fadeInScale 0.8s ease-out 0.3s both;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(123, 201, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shine {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.logo-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, #5e9dff, #7b5bff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #fff;
    box-shadow: 0 15px 35px rgba(94, 157, 255, 0.4);
    animation: float 3.2s ease-in-out infinite;
}

@keyframes float {

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

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

.login-header h2 {
    margin: 0 0 8px;
    color: #fff;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.login-divider {
    margin: 25px 0;
    text-align: center;
    position: relative;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    letter-spacing: 1px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 32%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
    transform: scaleX(-1);
}

.login-divider span {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(123, 201, 255, 0.1);
    border: 1px solid rgba(123, 201, 255, 0.3);
}

.fb-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4c6ef5, #2b50c7);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(76, 110, 245, 0.35);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s ease-in-out infinite;
    font-family: inherit;
}

.fb-login-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.fb-login-button:hover::before {
    width: 300px;
    height: 300px;
}

.fb-login-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 35px rgba(76, 110, 245, 0.45);
}

.fb-login-button:active {
    transform: translateY(-1px) scale(0.98);
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 0 12px 30px rgba(76, 110, 245, 0.35);
    }

    50% {
        box-shadow: 0 12px 30px rgba(76, 110, 245, 0.5), 0 0 0 10px rgba(76, 110, 245, 0.1);
    }
}

.fb-login-button i {
    font-size: 18px;
}

.security-info {
    margin-top: 25px;
    padding: 15px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.security-info i {
    color: #7bc9ff;
    font-size: 16px;
    margin-top: 3px;
}

.mini-timeline {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-step {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out both;
}

.timeline-step:nth-child(1) {
    animation-delay: 0.7s;
}

.timeline-step:nth-child(2) {
    animation-delay: 0.9s;
}

.timeline-step:nth-child(3) {
    animation-delay: 1.1s;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(123, 201, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
}

.footer-links a:hover {
    color: #7bc9ff;
    text-decoration: underline;
    transform: translateY(-2px);
}

.footer-links span {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 28px 40px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 100;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.page-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.page-avatar.placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 26px;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-avatar.placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.page-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 500;
}

.page-selector {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    color: white;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-selector option {
    background: #4a5568;
    color: white;
    padding: 12px;
    font-weight: 500;
}

.page-selector:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.page-selector:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.page-selector:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.page-selector option {
    background: #4a5568;
    color: white;
    padding: 8px;
}

.page-id {
    font-size: 12px;
    opacity: 0.8;
    font-weight: normal;
    font-family: monospace;
}

.subtitle {
    font-size: 12px;
    opacity: 0.85;
    font-weight: normal;
    margin: 0;
}

.top-bar h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.logout-btn {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .panel {
        margin-bottom: 20px;
    }
}

/* ============================================
   PANELS
   ============================================ */
.panel {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 50px rgba(102, 126, 234, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.panel-header {
    padding: 28px 32px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.panel-header h2 {
    font-size: 22px;
    color: #2c3e50;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
}

.panel-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.summary-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    font-weight: 700;
}

.summary-stats span {
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-radius: 12px;
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-stats span:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

/* ============================================
   CONVERSATIONS PANEL
   ============================================ */
.conversations-panel {
    min-height: 600px;
}

.panel-controls {
    padding: 20px 28px;
    border-bottom: 1px solid #e8e8e8;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    background: #fafbfc;
}

.search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.table-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 300px);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

th {
    padding: 18px 16px;
    text-align: left;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    color: white;
    border-bottom: none;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    vertical-align: middle;
    transition: all 0.2s ease;
    color: #495057;
    font-weight: 500;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.user-avatar.placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    border: 3px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.avatar-container {
    position: relative;
}

.avatar-container img {
    position: relative;
    z-index: 1;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left: 3px solid #667eea;
}

/* Removed disabled-row styling - all users can now be selected */

.loading-message {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
}

/* Checkbox */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid;
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.status-eligible {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: rgba(16, 185, 129, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.status-outside {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: rgba(239, 68, 68, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============================================
   COMPOSER PANEL
   ============================================ */
.composer-panel {
    min-height: 600px;
}

.composer-form {
    padding: 28px;
    border-bottom: 1px solid #e8e8e8;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: -0.2px;
}

.required {
    color: #e74c3c;
}

textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 140px;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-weight: 500;
    line-height: 1.6;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-2px);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #667eea;
    margin-top: 8px;
    font-weight: 600;
}

input[type="file"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    background: #fafbfc;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

input[type="file"]:hover {
    border-color: #667eea;
    border-style: solid;
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

input[type="file"]:focus {
    outline: none;
    border-color: #667eea;
    border-style: solid;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.help-text {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.image-preview {
    margin-top: 15px;
    position: relative;
    display: inline-block;
}

.image-preview img {
    max-width: 250px;
    max-height: 250px;
    border-radius: 16px;
    border: 3px solid #e0e0e0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.image-preview img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.btn-remove {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transition: all 0.3s ease;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.6);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.selected-count {
    margin-top: 18px;
    font-size: 15px;
    color: #667eea;
    text-align: center;
    font-weight: 700;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    padding: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    font-size: 13px;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transition: all 0.2s ease;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.btn-danger:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-large {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ============================================
   PROGRESS LOG
   ============================================ */
.progress-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.progress-section .panel-header {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.progress-section .panel-header h3 {
    font-size: 16px;
    color: #333;
}

.progress-log {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
    max-height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.9;
    border-radius: 0 0 20px 20px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-log {
    color: #999;
    text-align: center;
    padding: 40px;
    font-style: italic;
}

.log-entry {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.log-entry:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.log-entry.success {
    border-left: 4px solid #10b981;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, white 100%);
}

.log-entry.error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, white 100%);
}

.log-entry .psid {
    font-weight: 600;
    color: #333;
}

.log-entry .status {
    margin-left: 10px;
}

.log-entry .status.success {
    color: #28a745;
}

.log-entry .status.error {
    color: #dc3545;
}

.log-entry .error-msg {
    margin-top: 5px;
    color: #666;
    font-size: 11px;
}

.log-summary {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 2px solid #4267B2;
}

.log-summary h4 {
    margin-bottom: 10px;
    color: #333;
}

.log-summary .summary-item {
    margin: 5px 0;
    font-size: 13px;
}

/* ============================================
   ERROR MESSAGES
   ============================================ */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* ============================================
   RESPONSIVE - MOBILE FIRST
   ============================================ */
@media (max-width: 1200px) {
    .login-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .login-info {
        text-align: center;
    }

    .login-description {
        max-width: 100%;
    }
}

/* ============================================
   LOGIN PAGE EXTRA CONTENT SECTIONS
   ============================================ */
.login-extra-content {
    position: relative;
    z-index: 1;
}

/* Features Section */
.features-section {
    padding: 100px min(6vw, 80px);
    background: rgba(5, 15, 44, 0.6);
    position: relative;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(123, 201, 255, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background: rgba(6, 16, 45, 0.8);
    border: 1px solid rgba(123, 201, 255, 0.2);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out both;
    backdrop-filter: blur(10px);
}

.feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-item:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-item:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-item:nth-child(6) {
    animation-delay: 0.6s;
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: rgba(123, 201, 255, 0.5);
    box-shadow: 0 15px 40px rgba(123, 201, 255, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #7bc9ff, #4c6ef5);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(123, 201, 255, 0.3);
}

.feature-item h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px min(6vw, 80px);
    background: rgba(5, 15, 44, 0.4);
    position: relative;
}

.how-it-works-container {
    max-width: 1400px;
    margin: 0 auto;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    background: rgba(6, 16, 45, 0.8);
    border: 1px solid rgba(123, 201, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out both;
    backdrop-filter: blur(10px);
}

.step-card:nth-child(1) {
    animation-delay: 0.1s;
}

.step-card:nth-child(2) {
    animation-delay: 0.3s;
}

.step-card:nth-child(3) {
    animation-delay: 0.5s;
}

.step-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(123, 201, 255, 0.5);
    box-shadow: 0 20px 50px rgba(123, 201, 255, 0.25);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7bc9ff, #4c6ef5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(123, 201, 255, 0.4);
    animation: float 3s ease-in-out infinite;
}

.step-content h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.step-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 1.7;
}

/* Use Cases Section */
.use-cases-section {
    padding: 100px min(6vw, 80px);
    background: rgba(5, 15, 44, 0.6);
    position: relative;
}

.use-cases-container {
    max-width: 1400px;
    margin: 0 auto;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.use-case-item {
    background: rgba(6, 16, 45, 0.8);
    border: 1px solid rgba(123, 201, 255, 0.2);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out both;
    backdrop-filter: blur(10px);
}

.use-case-item:nth-child(1) {
    animation-delay: 0.1s;
}

.use-case-item:nth-child(2) {
    animation-delay: 0.2s;
}

.use-case-item:nth-child(3) {
    animation-delay: 0.3s;
}

.use-case-item:nth-child(4) {
    animation-delay: 0.4s;
}

.use-case-item:hover {
    transform: translateY(-8px);
    border-color: rgba(123, 201, 255, 0.5);
    box-shadow: 0 12px 35px rgba(123, 201, 255, 0.2);
}

.use-case-item i {
    font-size: 40px;
    color: #7bc9ff;
    margin-bottom: 20px;
    display: block;
}

.use-case-item h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
}

.use-case-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 100px min(6vw, 80px);
    background: rgba(5, 15, 44, 0.4);
    position: relative;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list {
    margin-top: 50px;
}

.faq-item {
    background: rgba(6, 16, 45, 0.8);
    border: 1px solid rgba(123, 201, 255, 0.2);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out both;
    backdrop-filter: blur(10px);
}

.faq-item:nth-child(1) {
    animation-delay: 0.1s;
}

.faq-item:nth-child(2) {
    animation-delay: 0.2s;
}

.faq-item:nth-child(3) {
    animation-delay: 0.3s;
}

.faq-item:nth-child(4) {
    animation-delay: 0.4s;
}

.faq-item:hover {
    border-color: rgba(123, 201, 255, 0.4);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(123, 201, 255, 0.1);
}

.faq-question h3 {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: #7bc9ff;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Footer Section */
.login-footer-section {
    padding: 80px min(6vw, 80px) 40px;
    background: rgba(5, 15, 44, 0.8);
    border-top: 1px solid rgba(123, 201, 255, 0.2);
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #7bc9ff;
    padding-left: 5px;
}

.footer-column ul li:not(:has(a)) {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(123, 201, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

@media (max-width: 768px) {
    .login-header-nav {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 20px;
    }

    .nav-logo span {
        display: inline-block;
        font-size: 16px;
        margin-left: 8px;
    }

    /* Login Page Nav Menu - App Drawer Style (Mobile Only) */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(5, 15, 44, 0.98) 0%, rgba(6, 16, 45, 0.98) 100%);
        backdrop-filter: blur(20px);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 0;
        border-left: 1px solid rgba(123, 201, 255, 0.2);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Hide regular nav links on mobile */
    .nav-menu>a:not(.nav-menu-item) {
        display: none;
    }

    /* Show drawer menu items on mobile */
    .nav-menu .nav-menu-header {
        display: block;
        padding: 80px 20px 25px;
        border-bottom: 2px solid rgba(123, 201, 255, 0.2);
        margin-bottom: 0;
    }

    .nav-menu .nav-menu-item {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 18px 20px;
        font-size: 16px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(123, 201, 255, 0.1);
        border-radius: 0;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
    }

    .nav-menu .nav-menu-item:hover {
        background: rgba(123, 201, 255, 0.15);
        padding-left: 25px;
        color: #7bc9ff;
    }

    .nav-menu .nav-menu-item i {
        font-size: 20px;
        width: 24px;
        text-align: center;
        color: #7bc9ff;
    }

    .nav-menu .nav-menu-item span {
        flex: 1;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    /* Dashboard Nav Toggle */
    .dashboard-nav-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
        margin-right: 15px;
    }

    .dashboard-nav-toggle span {
        background: #7bc9ff;
    }

    /* Hide desktop elements on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile elements */
    .mobile-only {
        display: block !important;
    }

    /* Mobile dashboard header - blue theme */
    .top-bar {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        padding: 15px 20px;
    }

    .top-bar-content {
        flex-wrap: nowrap;
        align-items: center;
    }

    .top-left {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .page-info {
        min-width: 0;
        flex: 1;
    }

    .page-title {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Mobile dashboard logo and brand name */
    .dashboard-logo-mobile {
        display: flex !important;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        margin-right: 8px;
    }

    .dashboard-logo-mobile .dashboard-logo {
        width: 40px;
        height: 40px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .dashboard-logo-mobile span {
        color: white;
        font-size: 16px;
        font-weight: 700;
        white-space: nowrap;
        background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .page-avatar {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    /* Mobile header page selector */
    .page-selector-header-mobile {
        width: 100%;
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.4);
        border-radius: 12px;
        color: white;
        padding: 10px 16px;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.3s ease;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 40px;
    }

    .page-selector-header-mobile:focus {
        outline: none;
        background-color: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    }

    .page-selector-header-mobile option {
        background: #4a5568;
        color: white;
        padding: 12px;
    }

    /* Overlay for drawer */
    .nav-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .login-hero {
        padding: 80px 20px 30px;
    }

    /* Mobile App-First Layout: Login Card First */
    .login-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .login-card {
        order: 1;
        padding: 25px 20px;
        margin-bottom: 30px;
        border-radius: 20px;
        position: sticky;
        top: 70px;
        z-index: 10;
        box-shadow: 0 10px 40px rgba(5, 12, 36, 0.8);
    }

    .login-info {
        order: 2;
        text-align: left;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    /* Fix text order - ensure proper flow */
    .login-info .login-pill {
        order: 1;
    }

    .login-info h1 {
        order: 2;
    }

    .login-info .login-description {
        order: 3;
    }

    .login-info .login-highlights {
        order: 4;
    }

    .login-info .login-bullets {
        order: 5;
    }

    .login-info .stats-row {
        order: 6;
    }

    /* Make Facebook button more prominent on mobile */
    .fb-login-button {
        width: 100%;
        padding: 18px 24px;
        font-size: 16px;
        margin-bottom: 20px;
        box-shadow: 0 8px 24px rgba(24, 119, 242, 0.4);
    }

    .login-header {
        margin-bottom: 20px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-header p {
        font-size: 14px;
    }

    .security-info {
        font-size: 12px;
        padding: 15px;
        margin-top: 15px;
    }

    .security-info p {
        font-size: 12px;
        line-height: 1.6;
    }

    .mini-timeline {
        display: none;
        /* Hide timeline on mobile for cleaner UI */
    }

    .login-info h1 {
        font-size: 26px;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .login-info .login-pill {
        margin-bottom: 15px;
    }

    .login-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .login-highlights {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .highlight-card {
        padding: 15px;
    }

    .login-bullets {
        margin-bottom: 20px;
    }

    .login-bullets li {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .stats-row {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 20px;
    }

    .stat-card {
        flex: 1;
        padding: 15px;
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .features-section,
    .how-it-works-section,
    .use-cases-section,
    .faq-section {
        padding: 60px 20px;
    }

    .features-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .particles-container {
        display: none;
        /* Hide particles on mobile for performance */
    }

    .floating-sphere {
        display: none;
        /* Hide floating spheres on mobile */
    }

    /* Dashboard Mobile Optimizations */
    .dashboard-container {
        padding: 10px;
    }

    .top-bar {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .page-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-avatar {
        width: 40px;
        height: 40px;
    }

    .page-selector {
        width: 100%;
        font-size: 14px;
        padding: 10px 15px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .panel {
        border-radius: 16px;
        margin-bottom: 15px;
    }

    .panel-header {
        padding: 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .panel-header h2 {
        font-size: 18px;
    }

    .summary-stats {
        flex-wrap: wrap;
        gap: 8px;
    }

    .summary-stats span {
        font-size: 12px;
        padding: 8px 12px;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 13px;
    }

    th,
    td {
        padding: 14px 10px;
        white-space: nowrap;
    }

    /* Make first column (checkbox) wider and centered */
    th:first-child,
    td:first-child {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        text-align: center !important;
        padding: 14px 18px !important;
        vertical-align: middle !important;
    }

    /* Mobile: Make checkboxes HUGE and VISIBLE */
    input[type="checkbox"] {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        cursor: pointer !important;
        accent-color: #667eea !important;
        display: block !important;
        vertical-align: middle !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 10 !important;
        margin: 0 auto !important;
        -webkit-appearance: checkbox !important;
        appearance: checkbox !important;
        background-color: white !important;
        border: 2px solid #667eea !important;
        border-radius: 4px !important;
    }

    th input[type="checkbox"],
    td input[type="checkbox"] {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        display: block !important;
        margin: 0 auto !important;
    }

    input[type="checkbox"]:checked {
        background-color: #667eea !important;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .composer-panel {
        min-height: auto;
    }

    .composer-form {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }

    .progress-container {
        flex-direction: column;
        gap: 15px;
    }

    .progress-bar-container {
        width: 100%;
    }

    .progress-log {
        max-height: 300px;
        padding: 15px;
        font-size: 12px;
    }

    /* Touch-friendly elements */
    button,
    .btn,
    a {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
        touch-action: manipulation;
    }

    input,
    textarea,
    select {
        font-size: 16px;
        /* Prevents zoom on iOS */
        -webkit-appearance: none;
        border-radius: 8px;
    }

    /* Better scrolling on mobile */
    body {
        -webkit-overflow-scrolling: touch;
    }

    .table-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Sticky header for better navigation */
    .top-bar {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }

    /* Table header should NOT be sticky on mobile - just scroll normally */
    thead {
        position: relative !important;
        top: auto !important;
        z-index: 1 !important;
    }

    .table-container {
        position: relative;
        z-index: 1;
    }

    /* Compact login card on very small screens */
    @media (max-width: 480px) {
        .login-card {
            padding: 20px 15px;
            margin-bottom: 20px;
        }

        .login-header h2 {
            font-size: 20px;
        }

        .fb-login-button {
            padding: 16px 20px;
            font-size: 15px;
        }

        .login-info h1 {
            font-size: 24px;
        }

        .panel-header {
            padding: 15px;
        }

        .composer-form {
            padding: 15px;
        }
    }

    .hero-pulse {
        display: none;
        /* Hide pulse on mobile */
    }

    .logo-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }

    .mini-timeline {
        gap: 12px;
    }

    .timeline-step {
        padding: 10px 12px;
    }

    .fb-login-button {
        padding: 14px;
        font-size: 14px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links span {
        display: none;
    }

    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-content {
        padding: 0 10px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .button-group {
        width: 100%;
        flex-direction: column;
    }

    .btn-secondary {
        width: 100%;
    }

    table {
        font-size: 12px;
    }

    th,
    td {
        padding: 8px 6px;
    }

    .panel-controls {
        padding: 15px 20px;
    }

    .composer-form {
        padding: 20px;
    }

    .progress-log {
        padding: 15px;
        font-size: 11px;
    }

    .modal-container {
        width: 95%;
        padding: 30px 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 25px 20px;
    }

    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .btn-modal {
        width: 100%;
    }

    /* Login page responsive */
    .login-hero {
        padding: 40px 20px;
    }

    .login-grid {
        grid-template-columns: 1fr;
    }

    .login-info h1 {
        font-size: 32px;
    }

    .stats-row {
        flex-direction: column;
    }

    .login-card {
        padding: 30px 25px;
    }

    .mini-timeline {
        gap: 12px;
    }
}

/* ============================================
   SUCCESS NOTIFICATION
   ============================================ */
.success-notification {
    position: fixed;
    top: -200px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 320px;
    max-width: 400px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.success-notification.show {
    top: 30px;
}

.success-notification .notification-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.success-notification .notification-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* Logo in navigation */
.nav-logo .logo-image {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

/* Logo in login card */
.login-logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Logo in dashboard header */
.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title .dashboard-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.page-title span {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-notification .notification-icon i {
    font-size: 26px;
    color: white;
}

.success-notification .notification-content {
    flex: 1;
}

.success-notification .notification-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.success-notification .notification-message {
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.4;
}

/* =========================================
   Pricing Section
   ========================================= */
.pricing-section {
    padding: 80px 20px;
    background: #f8fafc;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #e2e8f0;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pricing-card.featured {
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header h3 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 15px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.price span {
    font-size: 16px;
    color: #718096;
    font-weight: 500;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 15px;
    color: #4a5568;
    display: flex;
    align-items: center;
}

.pricing-features li i {
    color: #48bb78;
    margin-right: 10px;
}

/* =========================================
   Subscription UI (Dashboard)
   ========================================= */
.subscription-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.subscription-badge.free {
    background: #e2e8f0;
    color: #4a5568;
}

.subscription-badge.premium {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #744210;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subscription-badge i {
    margin-right: 6px;
}

.btn-upgrade-small {
    background: #667eea;
    color: white;
    border: none;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-upgrade-small:hover {
    background: #5a67d8;
}

/* Upgrade Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.upgrade-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 10vh auto;
    /* 10% from top and centered */
    padding: 0;
    border: none;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.close-modal {
    color: rgba(255, 255, 255, 0.8) !important;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.close-modal:hover,
.close-modal:focus {
    color: #fff !important;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

.upgrade-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px 30px;
    text-align: center;
    color: white;
    position: relative;
    /* Ensure z-index works if needed */
}

.upgrade-header .icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upgrade-header h2 {
    color: white !important;
    margin-bottom: 5px;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upgrade-header p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
}

.upgrade-body {
    padding: 30px;
    text-align: center;
}

.premium-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
}

.premium-features li {
    margin-bottom: 12px;
    color: #4a5568;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.premium-features li:last-child {
    margin-bottom: 0;
}

.premium-features li i {
    color: #48bb78;
    margin-right: 12px;
    font-size: 16px;
}

.price-tag {
    margin-bottom: 25px;
    color: #2d3748;
}

.price-tag .currency {
    font-size: 20px;
    font-weight: 600;
    vertical-align: top;
    position: relative;
    top: 8px;
}

.price-tag .amount {
    font-size: 42px;
    font-weight: 800;
    color: #2d3748;
}

.price-tag .period {
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

#btn-pay-now {
    background: #F3BA2F;
    /* Binance Yellow */
    color: #212833;
    font-weight: 700;
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(243, 186, 47, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

#btn-pay-now:hover {
    background: #E5B02D;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(243, 186, 47, 0.4);
}

/* Promo Section in Modal */
.promo-section {
    margin-top: 25px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 20px;
}

.promo-section p {
    font-size: 13px;
    color: #718096;
    margin-bottom: 10px;
    text-align: left;
    font-weight: 500;
}

.promo-input-group {
    display: flex;
    gap: 8px;
}

.promo-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.promo-input-group input:focus {
    border-color: #667eea;
    outline: none;
}

.promo-input-group button {
    background: #4a5568;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
}

.promo-input-group button:hover {
    background: #2d3748;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: none;
    }
}

/* =========================================
   Header Credits
   ========================================= */
.header-credits {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.badge-free,
.badge-premium {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.badge-free {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-premium {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #744210;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-free i,
.badge-premium i {
    margin-right: 8px;
}

.btn-upgrade-header {
    background: #667eea;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
}

.btn-upgrade-header:hover {
    background: #5a67d8;
}

/* Promo Code Section */
.promo-section {
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    text-align: left;
}

.promo-section p {
    font-size: 14px;
    color: #718096;
    margin-bottom: 8px;
}

.promo-input-group {
    display: flex;
    gap: 10px;
}

.promo-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
}

.promo-input-group button {
    background: #4a5568;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.promo-input-group button:hover {
    background: #2d3748;
}

#promo-message {
    margin-top: 8px;
    font-size: 13px;
}

#promo-message.success {
    color: #48bb78;
}

#promo-message.error {
    color: #f56565;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .header-credits {
        display: none;
        /* Hide in header on mobile */
    }

    .mobile-menu-credits {
        padding: 15px 20px;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        margin: 10px 0;
    }

    .mobile-credit-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-weight: 600;
    }

    .mobile-credit-item.premium {
        color: #d69e2e;
    }

    .mobile-credit-item.standard {
        color: #2b6cb0;
    }

    .mobile-credit-item.free {
        color: #4a5568;
    }

    .btn-upgrade-mobile {
        background: #667eea;
        color: white;
        border: none;
        padding: 8px 20px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        width: 100%;
        margin-top: 8px;
    }

    .btn-upgrade-mobile:hover {
        background: #5568d3;
    }

    /* If we want to show it in the mobile menu, we'd need to target the menu container */
    /* For now, let's ensure it doesn't break the layout */

    .success-notification {
        right: 20px;
        left: 20px;
        min-width: auto;
        max-width: none;
        top: -200px;
        padding: 18px 20px;
    }

    .success-notification.show {
        top: 80px;
        /* Below the top bar */
    }

    .success-notification .notification-icon {
        width: 45px;
        height: 45px;
    }

    .success-notification .notification-icon i {
        font-size: 24px;
    }

    .success-notification .notification-title {
        font-size: 15px;
    }

    .success-notification .notification-message {
        font-size: 13px;
    }
}

/* ============================================
   SCROLL DOWN BUTTON
   ============================================ */
.scroll-down-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(30, 144, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 500;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-down-btn.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-down-btn:hover {
    background: linear-gradient(135deg, #4169e1 0%, #1e90ff 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(30, 144, 255, 0.6), 0 6px 20px rgba(0, 0, 0, 0.3);
    border-width: 4px;
}

.scroll-down-btn:active {
    transform: translateY(-2px) scale(1.05);
}

.scroll-down-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

/* Flip arrow upside down when at bottom */
.scroll-down-btn.scroll-up img {
    transform: rotate(180deg);
}

.scroll-down-btn i {
    font-size: 28px;
    font-weight: 900;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .scroll-down-btn {
        bottom: 20px;
        right: 20px;
        width: 58px;
        height: 58px;
        font-size: 24px;
        display: flex;
        /* Always display on mobile */
        opacity: 1;
        transform: translateY(0);
    }

    .scroll-down-btn img {
        width: 28px;
        height: 28px;
    }

    .scroll-down-btn i {
        font-size: 26px;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .scroll-down-btn {
        display: none !important;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

/* ============================================
   CUSTOM MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    animation: modalSlideIn 0.3s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalSlideIn {
    to {
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 24px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.modal-body {
    padding: 32px 28px;
    text-align: center;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.modal-body p {
    font-size: 16px;
    color: #2c3e50;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.modal-footer {
    padding: 20px 28px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
}

.btn-modal {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-cancel {
    background: white;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.btn-cancel:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-confirm:active {
    transform: translateY(0);
}

/* ============================================
   PROFESSIONAL CRYPTO PAYMENT UI
   ============================================ */
.payment-step-container {
    padding: 10px;
    animation: fadeIn 0.3s ease;
}

.step-header {
    margin-bottom: 25px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.step-desc {
    color: #718096;
    font-size: 14px;
}

/* Coin Grid */
.coin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-coin {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.btn-coin:hover {
    border-color: #667eea;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.coin-img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    border-radius: 50%;
    object-fit: cover;
}

.coin-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.coin-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
}

.coin-symbol {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 500;
}

.arrow-icon {
    color: #cbd5e0;
    font-size: 14px;
}

/* Network Grid */
.network-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-network {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.btn-network:hover {
    border-color: #667eea;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.net-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ebf8ff;
    color: #3182ce;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.net-name {
    font-weight: 700;
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 4px;
}

.net-fee {
    font-size: 12px;
    color: #718096;
}

/* Payment Details */
.crypto-payment-container {
    text-align: center;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: #f7fafc;
    padding: 15px 20px;
    border-radius: 12px;
}

.amount-box {
    text-align: left;
}

.amount-box label {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
}

.amount-value {
    font-size: 20px;
    font-weight: 800;
    color: #2d3748;
}

.badge-network {
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.qr-wrapper {
    margin-bottom: 25px;
}

.qr-box {
    display: inline-block;
    padding: 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.qr-box img {
    width: 180px;
    height: 180px;
    display: block;
}

.qr-instruction {
    margin-top: 10px;
    font-size: 13px;
    color: #718096;
}

.address-section {
    margin-bottom: 25px;
    text-align: left;
}

.address-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    margin-left: 4px;
}

.address-input-group {
    display: flex;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.address-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: #2d3748;
    background: #fff;
}

.btn-copy {
    padding: 0 20px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s;
    position: relative;
}

.btn-copy:hover {
    background: #edf2f7;
    color: #2d3748;
}

.btn-copy .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.btn-copy.copied .tooltip {
    opacity: 1;
}

.payment-status-bar {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.status-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3182ce;
}

.spinner-pulse {
    width: 20px;
    height: 20px;
    border: 3px solid #3182ce;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.status-text {
    text-align: left;
    flex: 1;
}

.status-text strong {
    display: block;
    color: #2c5282;
    font-size: 14px;
}

.status-text span {
    font-size: 12px;
    color: #4299e1;
}

.btn-back-link,
.btn-cancel-link {
    background: none;
    border: none;
    color: #718096;
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s;
}

.btn-back-link:hover,
.btn-cancel-link:hover {
    color: #4a5568;
    text-decoration: underline;
}

.spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   PROFESSIONAL PRICING UI (Blue Theme & Glassmorphism)
   ============================================ */
.pricing-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #051537 0%, #0b1c48 30%, #1a2672 70%, #1e3aa9 100%);
    position: relative;
    overflow: hidden;
}

/* Add some background elements for depth if needed, or keep clean */

.pricing-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.pricing-section .section-title {
    color: #fff;
    margin-bottom: 10px;
}

.pricing-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

/* Plan Specific Themes - subtle borders or glows */
.pricing-card.standard {
    border-top: 4px solid #4299e1;
}

.pricing-card.unlimited {
    border-top: 4px solid #805ad5;
    background: rgba(255, 255, 255, 0.15);
    /* Slightly lighter for emphasis */
}

/* Header */
.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-name {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card.standard .plan-name {
    color: #63b3ed;
}

.pricing-card.unlimited .plan-name {
    color: #d6bcfa;
}

.plan-price {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.plan-price .currency {
    font-size: 24px;
    margin-top: 8px;
    margin-right: 4px;
    color: rgba(255, 255, 255, 0.8);
}

.plan-price .period {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    align-self: flex-end;
    margin-bottom: 8px;
    margin-left: 6px;
}

/* Features List */
.pricing-features {
    margin-bottom: 35px;
    flex: 1;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.pricing-features li i {
    margin-right: 12px;
    font-size: 18px;
    color: #68d391;
    /* Green checkmark */
}

/* Buttons */
.btn-select-plan {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card.standard .btn-select-plan {
    background: rgba(66, 153, 225, 0.2);
    color: #fff;
    border: 1px solid rgba(66, 153, 225, 0.5);
}

.pricing-card.standard .btn-select-plan:hover {
    background: #4299e1;
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.4);
}

.pricing-card.unlimited .btn-select-plan {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

.pricing-card.unlimited .btn-select-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.5);
    filter: brightness(1.1);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    padding: 6px 18px;
    border-radius: 0 0 12px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1;
}


/* Responsive */
@media (max-width: 768px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* ============================================
   LIVE BROADCAST PROGRESS UI
   ============================================ */
.progress-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
}

.log-entry {
    padding: 12px 15px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry.pending {
    background: #fff;
}

.log-entry.sending {
    background: #fffaf0;
    border-left: 4px solid #ed8936;
}

.log-entry.success {
    background: #f0fff4;
    border-left: 4px solid #48bb78;
}

.log-entry.error {
    background: #fff5f5;
    border-left: 4px solid #f56565;
}

.log-summary {
    background: #ebf8ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #bee3f8;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.log-summary h4 {
    width: 100%;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #2c5282;
    text-align: center;
}

.summary-item {
    font-size: 14px;
    color: #4a5568;
}

.summary-item span {
    font-weight: bold;
    margin-left: 5px;
    font-size: 16px;
}

.error-msg {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 5px;
}

/* ============================================
   UI REFRESH — Connect screen + dashboard
   Existing IDs and JS hooks stay unchanged
   ============================================ */
:root {
    --bz-primary: #0F172A;
    --bz-accent: #0369A1;
    --bz-facebook: #1877F2;
    --bz-bg: #F1F5F9;
    --bz-card: #FFFFFF;
    --bz-text: #0F172A;
    --bz-muted: #64748B;
    --bz-border: #E2E8F0;
    --bz-success: #059669;
    --bz-danger: #DC2626;
    --bz-ring: #0369A1;
    --bz-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --bz-radius: 18px;
}

body.dashboard-page,
.login-page {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.dashboard-page {
    background: var(--bz-bg);
    color: var(--bz-text);
}

.login-page.connect-only,
.login-page {
    background: #06101f;
}

.connect-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
    background:
        radial-gradient(circle at 18% 20%, rgba(24, 119, 242, 0.28), transparent 42%),
        radial-gradient(circle at 82% 8%, rgba(3, 105, 161, 0.22), transparent 38%),
        linear-gradient(160deg, #06101f 0%, #0b1a33 46%, #102544 100%);
}

.connect-screen .hero-overlay {
    background: linear-gradient(180deg, rgba(6, 16, 31, 0.15), rgba(6, 16, 31, 0.45));
}

.connect-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
}

.connect-card,
.login-page.connect-only .login-card {
    padding: 44px 36px 36px;
    background: rgba(8, 18, 36, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    position: static;
    margin-bottom: 0;
}

.connect-card .login-header h2 {
    font-size: 28px;
    letter-spacing: -0.04em;
}

.connect-card .login-header p {
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.55;
}

.connect-card .fb-login-button {
    background: var(--bz-facebook);
    box-shadow: 0 14px 30px rgba(24, 119, 242, 0.35);
    animation: none;
    margin-top: 8px;
}

.connect-card .fb-login-button:hover {
    background: #166fe5;
    box-shadow: 0 18px 36px rgba(24, 119, 242, 0.45);
}

.connect-card .fb-login-button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.connect-note {
    margin-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.connect-note i {
    color: #7dd3fc;
}

.dashboard-page .top-bar {
    background: #0F172A;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 32px;
}

.dashboard-page .page-title {
    background: none;
    -webkit-text-fill-color: #fff;
}

.dashboard-page .page-title span {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dashboard-page .page-selector,
.dashboard-page .page-selector-header-mobile {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.dashboard-page .logout-btn {
    text-transform: none;
    letter-spacing: 0;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.dashboard-page .logout-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.dashboard-page .main-content {
    max-width: 1440px;
    gap: 22px;
}

.dashboard-page .panel {
    border-radius: var(--bz-radius);
    border: 1px solid var(--bz-border);
    box-shadow: var(--bz-shadow);
}

.dashboard-page .panel:hover {
    transform: none;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.dashboard-page .panel-header {
    background: #fff;
    border-bottom: 1px solid var(--bz-border);
    padding: 22px 24px;
}

.dashboard-page .panel-header h2,
.dashboard-page .panel-header h3 {
    color: var(--bz-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dashboard-page .panel-header h2::after {
    background: var(--bz-accent);
    width: 36px;
    height: 3px;
}

.dashboard-page .summary-stats span {
    background: #F1F5F9;
    color: #0F172A;
    border: 1px solid var(--bz-border);
    box-shadow: none;
    border-radius: 999px;
}

.dashboard-page .panel-controls {
    background: #F8FAFC;
}

.dashboard-page .search-input,
.dashboard-page textarea,
.dashboard-page input[type="file"],
.dashboard-page .ai-topic-input,
.dashboard-page #ai-api-key,
.dashboard-page #ai-provider {
    border-radius: 12px;
    border-color: var(--bz-border);
    background: #fff;
}

.dashboard-page .search-input:focus,
.dashboard-page textarea:focus,
.dashboard-page .ai-topic-input:focus,
.dashboard-page #ai-api-key:focus,
.dashboard-page #ai-provider:focus {
    border-color: var(--bz-accent);
    box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.12);
    transform: none;
}

.dashboard-page thead {
    background: #0F172A;
    box-shadow: none;
}

.dashboard-page tbody tr:hover {
    background: #F8FAFC;
    border-left: 3px solid var(--bz-accent);
}

.dashboard-page .btn-primary,
.dashboard-page .btn-large.btn-primary {
    background: #0F172A;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    text-transform: none;
    letter-spacing: 0;
    border-radius: 12px;
}

.dashboard-page .btn-primary:hover:not(:disabled) {
    background: #1E293B;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.dashboard-page .btn-secondary {
    background: #fff;
    color: #0F172A;
    border: 1px solid var(--bz-border);
    box-shadow: none;
}

.dashboard-page .btn-secondary:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    transform: none;
}

.dashboard-page .btn-danger {
    text-transform: none;
    letter-spacing: 0;
}

.dashboard-page .status-eligible {
    background: #ECFDF5;
    color: #047857;
    border-color: #A7F3D0;
    text-shadow: none;
}

.dashboard-page .status-outside {
    background: #FEF2F2;
    color: #B91C1C;
    border-color: #FECACA;
    text-shadow: none;
}

.dashboard-page .progress-log {
    background: #F8FAFC;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dashboard-page .selected-count {
    background: #F1F5F9;
    border-color: var(--bz-border);
    color: #0F172A;
}

.send-pace-hint {
    margin-top: 10px;
    text-align: center;
    color: var(--bz-muted);
    font-size: 12px;
}

.ai-composer {
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid var(--bz-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.ai-composer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ai-composer-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ai-composer-title i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E0F2FE;
    color: var(--bz-accent);
    flex-shrink: 0;
}

.ai-composer-title strong {
    display: block;
    font-size: 14px;
    color: var(--bz-primary);
}

.ai-composer-title span {
    display: block;
    font-size: 12px;
    color: var(--bz-muted);
    margin-top: 2px;
}

.ai-settings-toggle {
    border: 1px solid var(--bz-border);
    background: #fff;
    color: #0F172A;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    min-height: 40px;
}

.ai-settings-toggle:hover,
.ai-settings-toggle:focus-visible {
    border-color: var(--bz-accent);
    outline: none;
}

.ai-settings-panel {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px dashed var(--bz-border);
}

.ai-settings-panel[hidden] {
    display: none;
}

.ai-settings-panel label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.ai-settings-panel select,
.ai-settings-panel input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
}

.ai-key-hint {
    font-size: 11px;
    color: var(--bz-muted);
}

.ai-topic-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 2px solid var(--bz-border);
    font-size: 14px;
}

.ai-tones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-tone-btn {
    border: 1px solid var(--bz-border);
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    min-height: 36px;
}

.ai-tone-btn.active,
.ai-tone-btn:hover {
    background: #0F172A;
    color: #fff;
    border-color: #0F172A;
}

.ai-generate-btn {
    width: 100%;
    background: #0369A1;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.ai-generate-btn:hover:not(:disabled) {
    background: #075985;
}

.ai-generate-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ai-status {
    min-height: 18px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--bz-muted);
}

.ai-status.success {
    color: var(--bz-success);
}

.ai-status.error {
    color: var(--bz-danger);
}

.dashboard-page .badge-free,
.dashboard-page .free-badge,
.dashboard-page .standard-badge,
.dashboard-page .premium-badge {
    border-radius: 999px;
}

.dashboard-page button:focus-visible,
.dashboard-page a:focus-visible,
.dashboard-page input:focus-visible,
.dashboard-page select:focus-visible,
.dashboard-page textarea:focus-visible {
    outline: 3px solid rgba(3, 105, 161, 0.45);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .connect-screen {
        padding: 96px 16px 24px;
        align-items: flex-start;
    }

    .connect-card {
        padding: 28px 20px;
        position: static;
        margin-bottom: 0;
    }

    .dashboard-page .top-bar {
        background: #0F172A !important;
        padding: 14px 16px;
    }

    .ai-composer-top {
        flex-direction: column;
    }

    .ai-settings-toggle,
    .ai-generate-btn,
    .ai-tone-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   FACEBOOK-LIKE DARK THEME + APP LAYOUT
   Soft on the eyes, ready for phone / APK
   ============================================ */
html {
    color-scheme: dark;
}

html body.login-page.fb-login-look,
html body.dashboard-page {
    --fb-bg: #18191A;
    --fb-surface: #242526;
    --fb-raised: #3A3B3C;
    --fb-text: #E4E6EB;
    --fb-muted: #B0B3B8;
    --fb-blue: #1877F2;
    --fb-blue-hover: #166FE5;
    --fb-line: #3E4042;
    --fb-green: #31A24C;
    --fb-red: #F02849;
    background: var(--fb-bg);
    color: var(--fb-text);
    font-family: Helvetica, Arial, sans-serif;
    min-height: 100dvh;
}

/* Facebook-style login */
html {
    --android-inset-top: 0px;
    --android-inset-bottom: 0px;
}

html body.login-page.fb-login-look {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top, 0px), var(--android-inset-top)) 20px max(24px, env(safe-area-inset-bottom, 0px), var(--android-inset-bottom));
}

.fb-login-shell {
    width: 100%;
    max-width: 396px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.fb-login-brand {
    text-align: center;
}

.fb-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--fb-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.fb-login-brand h1 {
    font-size: 42px;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--fb-blue);
    font-weight: 700;
    margin: 0 0 10px;
}

.fb-login-brand p {
    margin: 0;
    color: var(--fb-muted);
    font-size: 17px;
    line-height: 1.4;
}

.fb-login-card,
html body.login-page.fb-login-look .login-card {
    width: 100%;
    background: var(--fb-surface);
    border: 1px solid var(--fb-line);
    border-radius: 8px;
    padding: 20px 16px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.2);
    position: static;
    margin: 0;
    animation: none;
}

html body.login-page.fb-login-look .fb-login-button {
    width: 100%;
    min-height: 48px;
    border-radius: 6px;
    background: var(--fb-blue);
    box-shadow: none;
    animation: none;
    font-size: 17px;
    font-weight: 700;
}

html body.login-page.fb-login-look .fb-login-button:hover {
    background: var(--fb-blue-hover);
    transform: none;
    box-shadow: none;
}

html body.login-page.fb-login-look .connect-note {
    margin-top: 14px;
    color: var(--fb-muted);
    font-size: 13px;
}

/* Dashboard chrome */
html body.dashboard-page .dashboard-container {
    min-height: 100dvh;
    padding: 0;
    background: var(--fb-bg);
}

html body.dashboard-page .top-bar,
html body.dashboard-page .top-bar.top-bar {
    background: var(--fb-surface) !important;
    border-bottom: 1px solid var(--fb-line);
    box-shadow: none;
    padding: calc(12px + max(env(safe-area-inset-top, 0px), var(--android-inset-top))) 16px 12px;
}

html body.dashboard-page .page-title,
html body.dashboard-page .page-title span,
html body.dashboard-page .dashboard-logo-mobile span {
    background: none;
    -webkit-text-fill-color: #E4E6EB;
    color: #E4E6EB;
}

html body.dashboard-page .page-avatar {
    width: 44px;
    height: 44px;
    border-color: var(--fb-line);
    box-shadow: none;
}

html body.dashboard-page .page-selector,
html body.dashboard-page .page-selector-header-mobile,
html body.dashboard-page .search-input,
html body.dashboard-page textarea,
html body.dashboard-page input[type="file"],
html body.dashboard-page .ai-topic-input,
html body.dashboard-page #ai-api-key,
html body.dashboard-page #ai-provider {
    background: var(--fb-raised);
    color: var(--fb-text);
    border: 1px solid var(--fb-line);
    box-shadow: none;
}

html body.dashboard-page .page-selector option,
html body.dashboard-page .page-selector-header-mobile option {
    background: #242526;
    color: #E4E6EB;
}

html body.dashboard-page .subtitle {
    color: var(--fb-muted);
}

html body.dashboard-page .logout-btn {
    background: var(--fb-raised);
    border: 1px solid var(--fb-line);
    color: var(--fb-text);
    text-transform: none;
    letter-spacing: 0;
    min-height: 44px;
    cursor: pointer;
    font: inherit;
}

html body.dashboard-page .dashboard-nav-menu .nav-menu-item-logout {
    width: calc(100% - 32px);
    margin: auto 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #3A3B3C;
    color: #E4E6EB;
    border: 1px solid #4E4F50;
    border-radius: 10px;
    min-height: 48px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

html body.dashboard-page .header-credits {
    display: none;
}

html body.dashboard-page .main-content {
    max-width: 1280px;
    margin: 16px auto 24px;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom));
    gap: 16px;
}

html body.dashboard-page .panel {
    background: var(--fb-surface);
    border: 1px solid var(--fb-line);
    box-shadow: none;
    border-radius: 12px;
}

html body.dashboard-page .panel:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--fb-line);
}

html body.dashboard-page .panel-header,
html body.dashboard-page .panel-controls,
html body.dashboard-page .progress-log,
html body.dashboard-page .composer-form {
    background: var(--fb-surface);
    border-color: var(--fb-line);
    color: var(--fb-text);
}

html body.dashboard-page .panel-header h2,
html body.dashboard-page .panel-header h3,
html body.dashboard-page .form-group label {
    color: var(--fb-text);
}

html body.dashboard-page .panel-header h2::after {
    background: var(--fb-blue);
}

html body.dashboard-page .summary-stats span,
html body.dashboard-page .selected-count,
html body.dashboard-page .help-text {
    background: var(--fb-raised);
    color: var(--fb-text);
    border-color: var(--fb-line);
    box-shadow: none;
}

html body.dashboard-page .help-text {
    border-left-color: var(--fb-blue);
    color: var(--fb-muted);
}

html body.dashboard-page .char-count,
html body.dashboard-page .send-pace-hint,
html body.dashboard-page .empty-log,
html body.dashboard-page .loading-message {
    color: var(--fb-muted);
}

html body.dashboard-page thead {
    background: #1C1C1D;
    box-shadow: none;
}

html body.dashboard-page th {
    color: var(--fb-muted);
}

html body.dashboard-page td {
    color: var(--fb-text);
    border-bottom-color: var(--fb-line);
}

html body.dashboard-page tbody tr:hover {
    background: #2A2B2C;
    border-left-color: var(--fb-blue);
}

html body.dashboard-page .btn-primary,
html body.dashboard-page .btn-large.btn-primary {
    background: var(--fb-blue);
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    min-height: 48px;
}

html body.dashboard-page .btn-primary:hover:not(:disabled) {
    background: var(--fb-blue-hover);
    transform: none;
}

html body.dashboard-page .btn-secondary {
    background: var(--fb-raised);
    color: var(--fb-text);
    border: 1px solid var(--fb-line);
    box-shadow: none;
    min-height: 44px;
}

html body.dashboard-page .btn-secondary:hover {
    background: #4E4F50;
    transform: none;
}

html body.dashboard-page .btn-danger {
    background: var(--fb-red);
    box-shadow: none;
    text-transform: none;
}

html body.dashboard-page .status-eligible {
    background: rgba(49, 162, 76, 0.16);
    color: #7DCE8D;
    border-color: transparent;
    text-shadow: none;
}

html body.dashboard-page .status-outside {
    background: rgba(240, 40, 73, 0.16);
    color: #FF8A9B;
    border-color: transparent;
    text-shadow: none;
}

html body.dashboard-page .ai-composer,
html body.dashboard-page .ai-settings-panel {
    background: #1C1C1D;
    border-color: var(--fb-line);
}

html body.dashboard-page .ai-composer-title strong,
html body.dashboard-page .ai-settings-panel label {
    color: var(--fb-text);
}

html body.dashboard-page .ai-composer-title span,
html body.dashboard-page .ai-key-hint {
    color: var(--fb-muted);
}

html body.dashboard-page .ai-status {
    color: var(--fb-muted);
}

html body.dashboard-page .ai-status.success {
    color: #45BD62;
}

html body.dashboard-page .ai-status.error {
    color: #F0284A;
}

html body.dashboard-page .ai-composer-title i {
    background: rgba(24, 119, 242, 0.18);
    color: #8AB4F8;
}

html body.dashboard-page .ai-settings-toggle,
html body.dashboard-page .ai-tone-btn {
    background: var(--fb-raised);
    color: var(--fb-text);
    border-color: var(--fb-line);
}

html body.dashboard-page .ai-tone-btn.active,
html body.dashboard-page .ai-tone-btn:hover {
    background: var(--fb-blue);
    border-color: var(--fb-blue);
    color: #fff;
}

html body.dashboard-page .ai-generate-btn {
    background: var(--fb-blue);
    min-height: 48px;
}

html body.dashboard-page .dashboard-nav-menu {
    background: #242526;
    border-left-color: var(--fb-line);
    padding-top: calc(70px + env(safe-area-inset-top));
}

html body.dashboard-page .nav-toggle span,
html body.dashboard-page .dashboard-nav-toggle span {
    background: #E4E6EB;
}

html body.dashboard-page .log-entry {
    background: #1C1C1D;
    color: var(--fb-text);
}

html body.dashboard-page .log-entry.success {
    background: rgba(49, 162, 76, 0.12);
}

html body.dashboard-page .log-entry.error {
    background: rgba(240, 40, 73, 0.12);
}

html body.dashboard-page .log-summary {
    background: #1C1C1D;
    border-color: var(--fb-line);
    color: var(--fb-text);
}

html body.dashboard-page .modal-container,
html body.dashboard-page .upgrade-modal-content {
    background: var(--fb-surface);
    color: var(--fb-text);
}

html body.dashboard-page .modal-header {
    background: var(--fb-raised);
}

html body.dashboard-page .modal-footer {
    background: #1C1C1D;
    border-top-color: var(--fb-line);
}

html body.dashboard-page .modal-body p {
    color: var(--fb-text);
}

html body.dashboard-page .success-notification {
    background: var(--fb-surface);
    border-color: var(--fb-line);
}

html body.dashboard-page .badge-free,
html body.dashboard-page .free-badge,
html body.dashboard-page .standard-badge {
    background: var(--fb-raised) !important;
    color: var(--fb-text) !important;
}

html body.dashboard-page .user-avatar.placeholder {
    background: var(--fb-blue);
}

html body.dashboard-page input[type="checkbox"] {
    accent-color: var(--fb-blue);
}

html body.dashboard-page .scroll-down-btn {
    background: var(--fb-blue);
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
}

/* Phone / APK layout */
@media (max-width: 900px) {
    html body.dashboard-page .main-content {
        grid-template-columns: 1fr;
        margin-top: 12px;
        gap: 12px;
    }

    html body.dashboard-page .conversations-panel,
    html body.dashboard-page .composer-panel {
        min-height: 0;
    }

    html body.dashboard-page .table-container {
        max-height: none;
        overflow: visible;
    }

    html body.dashboard-page table,
    html body.dashboard-page thead,
    html body.dashboard-page tbody,
    html body.dashboard-page th,
    html body.dashboard-page td,
    html body.dashboard-page tr {
        display: block;
        width: 100%;
    }

    html body.dashboard-page thead {
        display: none;
    }

    html body.dashboard-page tbody tr {
        background: #1C1C1D;
        border: 1px solid var(--fb-line);
        border-radius: 12px;
        margin: 0 12px 10px;
        padding: 12px;
        display: grid;
        grid-template-columns: 40px 48px 1fr;
        grid-template-areas:
            "check avatar name"
            "check avatar status"
            "msg msg msg"
            "time time time";
        gap: 6px 10px;
    }

    html body.dashboard-page tbody tr:has(td[colspan]) {
        display: block;
        padding: 28px 16px;
    }

    html body.dashboard-page tbody td {
        border: none;
        padding: 0;
        white-space: normal;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        text-align: left !important;
    }

    html body.dashboard-page tbody td:nth-child(1) { grid-area: check; align-self: center; }
    html body.dashboard-page tbody td:nth-child(2) { grid-area: avatar; }
    html body.dashboard-page tbody td:nth-child(3) { grid-area: name; font-weight: 700; }
    html body.dashboard-page tbody td:nth-child(4) { display: none; }
    html body.dashboard-page tbody td:nth-child(5) { grid-area: msg; color: var(--fb-muted); font-size: 13px; }
    html body.dashboard-page tbody td:nth-child(6) { grid-area: time; color: var(--fb-muted); font-size: 12px; }
    html body.dashboard-page tbody td:nth-child(7) { grid-area: status; }

    html body.dashboard-page tbody td:nth-child(1) input[type="checkbox"] {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        margin: 0 !important;
    }

    html body.dashboard-page .button-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    html body.dashboard-page .button-group .btn:last-child {
        grid-column: 1 / -1;
    }

    html body.dashboard-page .panel-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    html body.dashboard-page .composer-form,
    html body.dashboard-page .panel-controls,
    html body.dashboard-page .progress-log {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .fb-login-brand h1 {
        font-size: 36px;
    }

    html body.dashboard-page .top-bar-content {
        flex-wrap: nowrap;
        gap: 8px;
    }

    html body.dashboard-page .page-selector-header-mobile {
        min-width: 0;
        width: 100%;
        font-size: 14px;
        padding: 8px 32px 8px 10px;
    }
}

/* Manual / AI swipe + boxed conversation list */
html body.dashboard-page .scroll-down-btn {
    display: none !important;
}

html body.dashboard-page .conversations-panel,
html body.dashboard-page .composer-panel {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 130px);
    min-height: 0;
}

html body.dashboard-page .composer-form,
html body.dashboard-page .progress-section {
    overflow: auto;
}

html body.dashboard-page .table-container {
    flex: 1 1 auto;
    min-height: 220px;
    max-height: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.mode-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #1C1C1D;
    border: 1px solid var(--fb-line, #3E4042);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 16px;
}

.mode-tab {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    color: #B0B3B8;
    min-height: 40px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 999px;
}

.mode-tab.active {
    color: #fff;
}

.mode-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #1877F2;
    border-radius: 999px;
    transition: transform 0.28s ease;
    z-index: 0;
}

#mode-tab-ai.active ~ .mode-slider,
.mode-switch:has(#mode-tab-ai.active) .mode-slider {
    transform: translateX(100%);
}

.mode-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.mode-track {
    display: block;
    width: 100%;
    position: relative;
}

.mode-pane {
    width: 100%;
}

#manual-pane {
    position: relative;
}

#ai-pane {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    transform: translateX(108%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.mode-track.ai-active #manual-pane {
    position: absolute;
    transform: translateX(-108%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.mode-track.ai-active #ai-pane {
    position: relative;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

html body.dashboard-page .ai-topic-input {
    min-height: 88px;
    resize: vertical;
    margin-bottom: 12px;
}

.ai-preview {
    margin-top: 12px;
    border: 1px solid var(--fb-line, #3E4042);
    border-radius: 10px;
    background: #18191A;
    overflow: hidden;
}

.ai-preview-title {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #B0B3B8;
    border-bottom: 1px solid var(--fb-line, #3E4042);
}

.ai-preview-list {
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ai-preview-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.35;
    color: #E4E6EB;
    border-bottom: 1px solid #2F3031;
}

.ai-preview-item:last-child {
    border-bottom: none;
}

.ai-preview-name {
    font-size: 11px;
    font-weight: 700;
    color: #8AB4F8;
}

.ai-preview-text {
    color: #E4E6EB;
}

.ai-composer.is-busy {
    opacity: 0.86;
}

.ai-composer.is-busy #ai-topic,
.ai-composer.is-busy .ai-tones,
.ai-composer.is-busy #ai-generate-btn {
    pointer-events: none;
}

@media (max-width: 900px) {
    html body.dashboard-page .conversations-panel {
        max-height: 48dvh;
        min-height: 280px;
    }

    html body.dashboard-page .table-container {
        overflow-y: auto !important;
        max-height: none !important;
        min-height: 160px;
    }

    html body.dashboard-page .composer-panel {
        max-height: none;
    }

    html body.dashboard-page .main-content {
        display: flex;
        flex-direction: column;
    }
}