@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Light Mode */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-hero: #ffffff;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-on-accent: #ffffff;
    
    --border-color: #e2e8f0;
    --input-focus: #2563eb;
    
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-green: #16a34a;
    --accent-warning: #fefce8;
    --warning-text: #854d02;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
    --bg-body: #000000;
    --bg-card: #0a0a0a;
    --bg-input: #111111;
    --bg-hero: #000000;
    
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    
    --border-color: #27272a;
    --input-focus: #3b82f6;
    
    --accent-warning: #422006;
    --warning-text: #fef3c7;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--bg-hero);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: var(--bg-hero);
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero h1 span {
    color: var(--accent-blue);
}

.hero-subtext {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Layout Grid */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 2rem;
    padding: 2rem 0 5rem;
    align-items: start;
}

/* Sidebar / Summary */
.col-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.summary-title {
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.price-item.total {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--accent-blue);
}

.step-guide {
    margin-top: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.step-num {
    background: var(--accent-blue);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
}

.step-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Main Form Area */
.col-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-header {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field label {
    font-size: 0.875rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Payment Instructions Box */
.notice-box {
    background: var(--accent-warning);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.notice-box p {
    font-size: 0.875rem;
    color: var(--warning-text);
    font-weight: 500;
}

.bank-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.bank-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 0.75rem;
    position: relative;
}

.bank-name {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.bank-row {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.bank-row strong {
    color: var(--text-muted);
    font-weight: 500;
    width: 100px;
    display: inline-block;
}

.copy-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--accent-blue);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--accent-blue);
    color: white;
}

.copy-btn.copied {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}

/* File Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.upload-area:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--accent-blue);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.upload-text {
    font-weight: 600;
    color: var(--text-main);
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

input[type="file"] {
    display: none;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(to bottom, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    margin-top: 2rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    fill: white;
    width: 32px;
    height: 32px;
}

/* Horizontal Steps Layout */
.steps-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.step-card-alt {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-card-alt:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-icon-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-icon-circle {
    width: 42px;
    height: 42px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.step-label {
    font-size: 1.5rem;
    font-weight: 800;
    font-style: italic;
    color: var(--text-main);
}

.step-description {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* Admin Specific */
.admin-login-box {
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.admin-dashboard-page {
    padding: 2rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-link {
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.filter-link:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.table-wrap {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--bg-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-muted);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-main);
}

tr:hover td {
    background: rgba(37, 99, 235, 0.05);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-verified { background: #dcfce7; color: #166534; }
.status-partial { background: #fef9c3; color: #854d02; }
.status-failed { background: #fee2e2; color: #991b1b; }
.status-pending { background: #f1f5f9; color: #475569; }

/* Modal & Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
}

.modal-icon.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.modal-icon.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-icon.loading {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.modal-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-close-modal {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-close-modal:hover {
    transform: scale(1.05);
}

/* Spinner Overlay */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .col-summary {
        order: 1;
    }
    .col-form {
        order: 0;
    }
    .steps-horizontal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .input-group {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 3rem 0 2rem;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Admin Detail Modal Extensions - PREMIUM REDESIGN */
.admin-detail-modal-body {
    text-align: left;
    margin-top: 1rem;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 2.5rem;
    align-items: start;
}

.detail-info-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.detail-item p {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
    word-break: break-all;
}

.detail-image-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-image-container {
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.detail-image-container:hover {
    transform: translateY(-5px);
}

.detail-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    cursor: zoom-in;
}

.detail-ocr-banner {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1rem;
    border-radius: 12px;
    color: #f87171;
    font-size: 0.85rem;
    line-height: 1.5;
}

.detail-ocr-banner strong {
    color: #ef4444;
    display: block;
    margin-bottom: 0.25rem;
}

.btn-download-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--accent-blue);
    color: white !important;
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.btn-download-full:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

@media (max-width: 850px) {
    .admin-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
/* Centered Unique Curriculum Section - MATCHING SCREENSHOT */
.curriculum-container {
    display: flex;
    justify-content: center;
    margin: 60px auto;
    padding: 0 20px;
}

.curriculum-card {
    background: #1e2229; /* Matches the screenshot background */
    border: 1px solid #30363d; /* Distinct sharp border */
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.curriculum-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.curriculum-list {
    display: inline-flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.curriculum-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #ffffff;
}

.check-icon {
    flex-shrink: 0;
    color: #ffffff; /* White ticks for screenshot match */
    font-size: 1.2rem;
    font-weight: 900;
    margin-top: 2px;
}

.curriculum-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    color: #f1f5f9;
}

@media (max-width: 768px) {
    .curriculum-container {
        margin: 40px auto;
    }
    .curriculum-card {
        padding: 30px 20px;
        border-radius: 15px;
        align-items: flex-start; 
    }
    .curriculum-title {
        text-align: left;
        font-size: 1.5rem;
    }
    .curriculum-list {
        width: 100%;
    }
    .curriculum-text {
        font-size: 1rem;
    }
}
