@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Slideshow Animation */
@keyframes slideshow {
    0%, 12.5% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slideshow-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0;
    animation: slideshow 24s infinite;
}

.slideshow-image:nth-child(1) { animation-delay: 0s; }
.slideshow-image:nth-child(2) { animation-delay: -3s; }
.slideshow-image:nth-child(3) { animation-delay: -6s; }
.slideshow-image:nth-child(4) { animation-delay: -9s; }
.slideshow-image:nth-child(5) { animation-delay: -12s; }
.slideshow-image:nth-child(6) { animation-delay: -15s; }
.slideshow-image:nth-child(7) { animation-delay: -18s; }
.slideshow-image:nth-child(8) { animation-delay: -21s; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 26%),
        radial-gradient(circle at 50% 85%, rgba(236, 72, 153, 0.08), transparent 22%),
        linear-gradient(180deg, #f7fbff 0%, #eef5ff 52%, #f9fbfd 100%);
    color: var(--gray-700);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(30px);
    opacity: 0.75;
    animation: floatGlow 14s ease-in-out infinite;
}

.ambient-orb-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -120px;
    background: rgba(99, 102, 241, 0.24);
}

.ambient-orb-2 {
    width: 360px;
    height: 360px;
    top: 18%;
    right: -120px;
    background: rgba(16, 185, 129, 0.18);
    animation-delay: -4s;
}

.ambient-orb-3 {
    width: 520px;
    height: 520px;
    bottom: -220px;
    left: 18%;
    background: rgba(236, 72, 153, 0.12);
    animation-delay: -8s;
}

@keyframes floatGlow {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -18px, 0) scale(1.06); }
}

@keyframes adminDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(18px, -10px, 0) scale(1.03); }
    66% { transform: translate3d(-14px, 12px, 0) scale(1.05); }
}

@keyframes adminPulse {
    0%, 100% { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
    50% { box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52); }
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.75), transparent 0 14%),
        radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.55), transparent 0 12%),
        radial-gradient(circle at 78% 78%, rgba(255, 255, 255, 0.45), transparent 0 14%);
    filter: blur(22px);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 60%);
    opacity: 0.8;
    z-index: -1;
}

body.admin-dark-background {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 22%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.035), transparent 18%),
        linear-gradient(180deg, #08090c 0%, #0b0d12 45%, #10131a 100%);
    color: #e5e7eb;
}

body.admin-dark-background::before {
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.08), transparent 0 14%),
        radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.06), transparent 0 12%),
        radial-gradient(circle at 78% 78%, rgba(255, 255, 255, 0.05), transparent 0 14%);
    filter: blur(30px);
    animation: adminDrift 22s ease-in-out infinite;
}

body.admin-dark-background::after {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.025), transparent 62%);
    opacity: 1;
    animation: adminDrift 30s ease-in-out infinite reverse;
}

/* Pages */
.page {
    display: none;
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

.page.active {
    display: block;
    position: relative;
    z-index: 0;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 50px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: #000;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    margin-left: 12px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-700);
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-login {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-login:hover {
    background: var(--primary-dark);
}

.nav-logout {
    background: var(--danger);
    padding: 8px 20px;
    border-radius: 6px;
    color: white !important;
}

.nav-logout:hover {
    background: #dc2626;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-ghost:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

/* Google Sign-In Button */
.btn-google {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.google-icon {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(45deg, #EA4335, #FBBC04, #34A853, #4285F4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Google Sign-In Button Container */
.google-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.google-button-container > div {
    width: 100% !important;
}

.google-button-container > div > iframe {
    width: 100% !important;
}

/* Auth Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* Auth Page */
.auth-subtitle {
    color: var(--gray-500);
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    color: var(--gray-400);
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
    z-index: 0;
}

.auth-divider {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin: 20px auto;
    padding: 0 15px;
    background: white;
}

/* Auth Tabs */
.auth-tab {
    display: none;
}

.auth-tab.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.auth-form {
    margin-top: 20px;
}

.auth-form .form-group {
    margin-bottom: 15px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 14px;
}

.auth-form .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-form .form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.auth-form .form-group input[type="checkbox"] + label {
    display: inline;
    margin: 0;
    font-weight: 400;
    font-size: 13px;
    color: var(--gray-600);
}

.auth-toggle {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-600);
}

.auth-toggle a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.subtitle {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 40px;
}

.hero-message {
    margin-bottom: 40px;
}

.message-box {
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid var(--primary);
    padding: 30px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 18px 50px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.message-box h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.message-box p {
    margin-bottom: 20px;
    color: var(--gray-700);
}

.benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefits li {
    color: var(--gray-700);
    font-weight: 500;
}

.btn-subtext {
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 15px;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.slideshow-container {
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 18px 50px rgba(31, 41, 55, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.floating-card {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-out infinite;
}

.wave:nth-child(2) {
    animation-delay: 0.5s;
}

.wave:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Features Section */
.features {
    background: rgba(255, 255, 255, 0.28);
    padding: 80px 20px;
}

.features h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--gray-900);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.72);
    padding: 40px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    text-align: center;
    box-shadow: 0 18px 50px rgba(31, 41, 55, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
}

/* About Section */
.about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--gray-900);
}

.about-text {
    max-width: 600px;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-700);
    font-size: 16px;
}

.specs {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.spec {
    padding: 15px;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.spec strong {
    color: var(--gray-900);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Auth Page */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.auth-card {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 18px 50px rgba(31, 41, 55, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    margin: 20px;
}

.auth-card h1 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.auth-toggle {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-600);
}

.auth-toggle a {
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

/* Forgot Password Styles */
.forgot-step {
    display: none;
}

.forgot-step.active {
    display: block;
}

.auth-box {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 18px 50px rgba(31, 41, 55, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    margin: 20px;
}

.auth-box h2 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    color: var(--primary);
}

.auth-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 30px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

/* Dashboard */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 60px;
}

.dashboard-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.dashboard-header p {
    font-size: 18px;
    color: var(--gray-600);
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.message-section {
    background: rgba(255, 255, 255, 0.72);
    padding: 40px;
    border-radius: 18px;
    border-left: 4px solid var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 18px 50px rgba(31, 41, 55, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.message-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.dashboard-message {
    color: var(--gray-700);
    line-height: 1.8;
}

.dashboard-message p {
    margin-bottom: 15px;
}

.dashboard-message h3 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.dashboard-message ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.dashboard-message li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.dashboard-message li:before {
    content: "○";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Download Section */
.download-section h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--gray-900);
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.download-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.download-card.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.download-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.download-card.featured h3 {
    color: white;
}

.price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.price span {
    font-size: 14px;
}

.features-list {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.features-list li {
    padding: 10px 0;
    color: var(--gray-700);
}

.download-card.featured .features-list li {
    color: rgba(255, 255, 255, 0.9);
}

.download-card .btn {
    margin-top: 20px;
}

/* How It Works */
.how-it-works {
    padding: 60px 0;
}

.how-it-works h2 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--gray-900);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.step p {
    color: var(--gray-600);
}

/* Payment Page */
.payment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.payment-header {
    text-align: center;
    margin-bottom: 40px;
}

.payment-header h1 {
    font-size: 32px;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.payment-header p {
    color: var(--gray-600);
    font-size: 16px;
}

.payment-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.form-section {
    border: none;
    margin-bottom: 30px;
    padding: 0;
}

.form-section legend {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.payment-form-section {
    background: rgba(255, 255, 255, 0.72);
    padding: 40px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 18px 50px rgba(31, 41, 55, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    margin-right: 12px;
}

.method-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.3s;
}

.payment-option input:checked + .method-label {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.method-icon {
    font-size: 24px;
    margin-right: 15px;
}

.method-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.method-name {
    font-weight: 600;
    color: var(--gray-900);
}

.method-desc {
    font-size: 13px;
    color: var(--gray-500);
}

.card-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* Payment Method Tabs */
.payment-method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-method-btn {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.payment-method-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.payment-method-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.payment-method-content {
    display: none;
}

.payment-method-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Order Summary */
.order-summary {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.order-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.price-details {
    margin-bottom: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 2px solid var(--gray-200);
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.payment-secure {
    margin-top: 30px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-600);
    text-align: center;
}

.payment-secure p {
    margin: 5px 0;
}

/* Footer */
.footer {
    background: rgba(17, 24, 39, 0.82);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Profile Page */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.profile-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 40px;
}

.profile-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.profile-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.profile-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.profile-content {
    display: grid;
    gap: 40px;
}

.profile-section {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    padding: 30px;
    box-shadow: 0 18px 50px rgba(31, 41, 55, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.profile-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--gray-900);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 15px;
}

.profile-section h3 {
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--gray-800);
}

.section-subtitle {
    color: var(--gray-500);
    margin-bottom: 25px;
    font-size: 16px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    background: var(--gray-50);
    padding: 15px;
    border-radius: 8px;
}

.info-item label {
    display: block;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-item p {
    font-size: 18px;
    color: var(--gray-900);
    font-weight: 500;
}

.status-active {
    color: var(--secondary) !important;
    font-weight: 700;
}

/* Settings Section */
.settings-section {
    margin-bottom: 30px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.settings-item {
    background: var(--gray-50);
    padding: 15px;
    border-radius: 8px;
}

.settings-item label {
    display: block;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.setting-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.setting-display p {
    font-size: 16px;
    color: var(--gray-900);
    font-weight: 500;
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-info {
    background: #E3F2FD;
    color: #1976D2;
}

.badge-success {
    background: #E8F5E9;
    color: #388E3C;
}

/* Change Password Form */
.change-password-container {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.change-password-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.change-password-container .form-group {
    margin-bottom: 15px;
}

.change-password-container .form-group:last-of-type {
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.form-actions .btn {
    min-width: 150px;
}

.btn-secondary {
    background: var(--gray-300);
    color: var(--gray-900);
    border: 1px solid var(--gray-400);
}

.btn-secondary:hover {
    background: var(--gray-400);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Download Buttons */
.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.download-option {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-option:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.download-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.download-option h3 {
    margin: 0;
    margin-bottom: 5px;
    color: var(--gray-900);
}

.version {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 15px;
}

.download-option .btn {
    margin: 15px 0;
}

.file-info {
    color: var(--gray-500);
    font-size: 13px;
    margin-top: 10px;
}

/* Installation Guide */
.installation-guide {
    background: var(--gray-50);
    border-left: 4px solid var(--secondary);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.guide-steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
}

.guide-steps li {
    counter-increment: step;
    margin-bottom: 25px;
    padding-left: 50px;
    position: relative;
}

.guide-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--secondary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.guide-steps strong {
    display: block;
    margin-bottom: 5px;
    color: var(--gray-900);
    font-size: 16px;
}

.guide-steps p {
    color: var(--gray-600);
    margin: 0;
}

/* FAQ Section */
.faq-section {
    margin-top: 30px;
}

.faq-item {
    margin: 15px 0;
}

.faq-item details {
    cursor: pointer;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.faq-item details:hover {
    background: var(--gray-100);
}

.faq-item summary {
    font-weight: 600;
    color: var(--gray-900);
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item details[open] summary {
    color: var(--primary);
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--gray-700);
    margin: 0;
    line-height: 1.6;
}

/* Subscription Actions */
.subscription-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.subscription-actions .btn {
    padding: 12px 24px;
}

/* Responsive Profile */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .nav-menu {
        gap: 20px;
    }

    .auth-card {
        max-width: 100%;
        padding: 25px;
        margin: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .payment-content {
        grid-template-columns: 1fr;
    }

    .payment-method-tabs {
        grid-template-columns: 1fr;
    }

    .payment-method-btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .download-options {
        grid-template-columns: 1fr;
    }

    .download-card.featured {
        transform: scale(1);
    }

    /* Profile Page Mobile */
    .profile-header {
        padding: 25px 15px;
    }

    .profile-header h1 {
        font-size: 24px;
    }

    .profile-icon {
        font-size: 40px;
    }

    .profile-section {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .subscription-actions {
        grid-template-columns: 1fr;
    }

    .guide-steps li {
        padding-left: 45px;
    }

    .guide-steps li::before {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* ============== ADMIN STYLES ============== */

/* Admin Container */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    background: transparent;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 18px 50px rgba(31, 41, 55, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.admin-dark-background .admin-header,
body.admin-dark-background .stat-card,
body.admin-dark-background .profile-section,
body.admin-dark-background .payment-form-section,
body.admin-dark-background .message-section,
body.admin-dark-background .auth-card,
body.admin-dark-background .auth-box {
    background: rgba(16, 18, 24, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

body.admin-dark-background .stat-card:hover,
body.admin-dark-background .profile-section:hover,
body.admin-dark-background .payment-form-section:hover,
body.admin-dark-background .message-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.52);
}

body.admin-dark-background .admin-header {
    animation: adminPulse 8s ease-in-out infinite;
}

body.admin-dark-background .admin-container,
body.admin-dark-background .admin-section,
body.admin-dark-background .profile-container,
body.admin-dark-background .dashboard-container {
    color: #e5e7eb;
}

body.admin-dark-background .admin-nav {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.admin-dark-background .admin-nav-btn {
    color: #cbd5e1;
}

body.admin-dark-background .admin-nav-btn.active,
body.admin-dark-background .admin-nav-btn:hover {
    color: #f8fafc;
}

body.admin-dark-background .stat-label,
body.admin-dark-background .section-subtitle,
body.admin-dark-background .profile-subtitle,
body.admin-dark-background .dashboard-header p,
body.admin-dark-background .payment-header p,
body.admin-dark-background .auth-subtitle,
body.admin-dark-background .auth-toggle,
body.admin-dark-background .info-item label,
body.admin-dark-background .info-item p,
body.admin-dark-background .form-group label {
    color: #cbd5e1;
}

body.admin-dark-background .profile-header,
body.admin-dark-background .cta,
body.admin-dark-background .contact-support-section {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.admin-bg-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--gray-700);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
    white-space: nowrap;
}

.admin-bg-toggle-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.45);
}

body.admin-dark-background .admin-bg-toggle-btn {
    background: rgba(20, 22, 28, 0.9);
    color: #f3f4f6;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
}

.logo-img-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-name {
    color: var(--gray-700);
    font-size: 14px;
}

/* Admin Navigation */
.admin-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gray-200);
}

.admin-nav-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-nav-btn:hover {
    color: var(--primary);
}

.admin-nav-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-header-photo {
    flex: 0 0 auto;
    background: #fff;
}

.admin-inline-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.12);
    flex: 0 0 auto;
}

.admin-profile-photo-preview {
    background: rgba(255, 255, 255, 0.18);
}

.admin-profile-photo-fallback {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

/* Admin Sections */
.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.72);
    padding: 25px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 18px 50px rgba(31, 41, 55, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Users Search */
.admin-search {
    margin-bottom: 20px;
}

.admin-search input {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.admin-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Users Table */
.users-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.users-table thead {
    background: var(--gray-100);
    border-bottom: 2px solid var(--gray-200);
}

.users-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.users-table td {
    padding: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.users-table tbody tr:hover {
    background: var(--gray-50);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-unpaid {
    background: #fee2e2;
    color: #991b1b;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.btn-view {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.btn-view:hover {
    background: var(--primary-dark);
}

/* User Profile */
.user-profile-container {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.profile-header {
    padding: 30px;
    border-bottom: 2px solid var(--gray-200);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.profile-header h2 {
    margin-bottom: 5px;
}

.profile-header p {
    opacity: 0.9;
    font-size: 14px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

/* Dashboard Slideshow */
.dashboard-slideshow-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.dashboard-slideshow-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.dashboard-slideshow-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.dashboard-slideshow-image.active {
    opacity: 1;
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 4px;
    z-index: 10;
    transition: background 0.3s;
}

.slideshow-nav:hover {
    background: rgba(0,0,0,0.8);
}

.slideshow-nav.prev {
    left: 10px;
}

.slideshow-nav.next {
    right: 10px;
}

.slideshow-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slideshow-dots .dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.slideshow-dots .dot.active {
    opacity: 1;
}

.profile-section h3 {
    margin-bottom: 20px;
    color: var(--gray-900);
    font-size: 16px;
}

.info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}

.info-row label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

.info-row span {
    color: var(--gray-600);
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    line-height: 1.5;
    min-height: 24px;
    display: flex;
    align-items: center;
}

/* Payment History */
.payment-history {
    padding: 30px;
    border-top: 2px solid var(--gray-200);
}

.payment-history h3 {
    margin-bottom: 20px;
    color: var(--gray-900);
}

.payments-table-container {
    overflow-x: auto;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.payments-table thead {
    background: var(--gray-100);
    border-bottom: 2px solid var(--gray-200);
}

.payments-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.payments-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.status-completed {
    color: var(--secondary);
    font-weight: 600;
}

.text-center {
    text-align: center;
    color: var(--gray-500);
}

/* Payment Review Button & Modal */
/* Remove old button styles - nav button takes over */
.payment-review-section {
    display: none; /* Hidden since nav button replaces it */
}

.payment-review-nav-btn {
    color: var(--secondary) !important;
    border-bottom-color: var(--secondary) !important;
}

.pending-badge-nav {
    background: rgba(255,255,255,0.2);
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.admin-payment-review-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.admin-payment-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.pending-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.pending-badge.pulse {
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

.payment-proofs-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    background: none;
}

.payment-proofs-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 95%;
    max-height: 90vh;
    width: 1000px;
    max-width: 1200px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalZoom 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #64748b;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.modal-body {
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    padding: 0;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 1.1rem;
    color: #64748b;
}

.loading-spinner::before {
    content: "";
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment-proofs-table-container {
    padding: 1.5rem;
}

.payment-proofs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.payment-proofs-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.payment-proofs-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.payment-proofs-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.payment-proofs-table tbody tr {
    transition: background-color 0.2s;
}

.payment-proofs-table tbody tr:hover {
    background: #f8fafc;
}

.proof-image {
    max-width: 60px;
    max-height: 60px;
    border-radius: 6px;
    cursor: pointer;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.status-pending {
    color: #f59e0b;
    background: #fef3c7;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-approved {
    color: #059669;
    background: #d1fae5;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-approve {
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    min-width: 80px;
}

.btn-approve:hover:not(:disabled) {
    background: #059669;
}

.btn-approve:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalZoom {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Admin */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .admin-user-info {
        width: 100%;
        justify-content: space-between;
    }

    .users-table {
        font-size: 12px;
    }

    .users-table th,
    .users-table td {
        padding: 10px;
    }

    .admin-nav {
        flex-wrap: wrap;
    }

    .modal-content {
        width: 98%;
        max-height: 85vh;
        margin: 1rem;
    }

    .payment-proofs-table {
        font-size: 0.8rem;
    }

    .payment-proofs-table th,
    .payment-proofs-table td {
        padding: 0.75rem 0.5rem;
    }
}


/* ============== DOWNLOAD SECTION ============== */

.download-section {
    padding: 30px;
    border-top: 2px solid var(--gray-200);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(99, 102, 241, 0.1));
    border-radius: 8px;
    margin-top: 20px;
}

.download-section h3 {
    color: var(--gray-900);
    margin-bottom: 15px;
}

.download-info {
    color: var(--gray-700);
    margin-bottom: 20px;
    font-size: 14px;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-note {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
    padding: 10px;
    background: white;
    border-left: 3px solid var(--secondary);
    border-radius: 4px;
}

.upgrade-section {
    padding: 30px;
    border-top: 2px solid var(--gray-200);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.1));
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.upgrade-section h3 {
    color: var(--gray-900);
    margin-bottom: 10px;
}

.upgrade-section p {
    color: var(--gray-700);
    margin-bottom: 20px;
}

/* ============== INSTALLER MANAGEMENT ============== */

.installer-upload-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.installer-upload-section h3 {
    color: var(--gray-900);
    margin-bottom: 20px;
}

.installer-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.installer-upload-grid .installer-form {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 18px;
}

.installer-upload-grid .installer-form h4 {
    margin: 0 0 14px;
    font-size: 18px;
    color: var(--gray-900);
}

.installer-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.installer-form .form-group {
    display: flex;
    flex-direction: column;
}

.installer-form .form-group label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.installer-form .form-group input,
.installer-form .form-group textarea {
    padding: 10px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.installer-form .form-group input:focus,
.installer-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.installer-form small {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 3px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.installer-list-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.installer-list-section h3 {
    color: var(--gray-900);
    margin-bottom: 20px;
}

.installers-table-container {
    overflow-x: auto;
}

.installers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.installers-table thead {
    background: var(--gray-100);
    border-bottom: 2px solid var(--gray-200);
}

.installers-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.installers-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.installers-table tbody tr:hover {
    background: var(--gray-50);
}

.installer-status-active {
    display: inline-block;
    padding: 4px 8px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.installer-status-inactive {
    display: inline-block;
    padding: 4px 8px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.installer-platform-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.installer-actions {
    display: flex;
    gap: 5px;
}

.btn-activate {
    padding: 4px 8px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.2s;
}

.btn-activate:hover {
    background: #059669;
}

.btn-delete-installer {
    padding: 4px 8px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.2s;
}

.btn-delete-installer:hover {
    background: #dc2626;
}

@media (max-width: 1100px) {
    .installer-upload-grid {
        grid-template-columns: 1fr;
    }
}

/* ============== GCASH/MAYA PAYMENT REVIEW MODAL ============== */

/* Payment Review Button */
.admin-payment-review-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    width: 100%;
    margin-top: 2rem;
    justify-content: center;
}

.admin-payment-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.admin-payment-review-btn .pending-badge {
    background: #f59e0b;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.admin-payment-review-btn .pending-badge.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
}

/* Payment Proofs Modal */
#payment-proofs-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

#payment-proofs-modal.active {
    display: flex;
}

#payment-proofs-modal > div {
    background: white;
    border-radius: 1rem;
    max-width: 95vw;
    max-height: 95vh;
    width: 1200px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    flex: 1;
    overflow: auto;
    padding: 0;
}

#proofs-modal-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
}

#proofs-modal-loading.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#proofs-table-container {
    width: 100%;
    height: 100%;
}

#payment-proofs-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#payment-proofs-modal-table thead {
    position: sticky;
    top: 0;
    background: white;
    z-index: 5;
    border-bottom: 2px solid #e5e7eb;
}

#payment-proofs-modal-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
    background: #f8fafc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#payment-proofs-modal-table td {
    padding: 1.1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

#payment-proofs-modal-table tr:hover {
    background: #f8fafc;
}

.proof-thumbnail {
    max-width: 80px;
    max-height: 80px;
    cursor: pointer;
    border-radius: 0.5rem;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.proof-thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Status Badges */
.status-pending {
    background: #fed7aa !important;
    color: #92400e !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

.status-approved {
    background: #d1fae5 !important;
    color: #065f46 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

/* Approve Buttons */
.btn-approve {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.btn-approve:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.btn-approve:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive Modal */
@media (max-width: 768px) {
    #payment-proofs-modal > div {
        width: 98vw;
        height: 95vh;
        border-radius: 0.75rem;
    }
    
    #payment-proofs-modal-table {
        font-size: 12px;
    }
    
    #payment-proofs-modal-table th,
    #payment-proofs-modal-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .proof-thumbnail {
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
}

