/* ========================================
   The Solid Shell – Main Styles
   ======================================== */
/* ---------- HEADER WITH LOGO ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 26, 21, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(130, 167, 158, 0.2);
    padding: 10px 0;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 50px;
    width: auto;
}
.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}
.main-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: var(--transition);
}
.main-nav a:hover {
    color: var(--secondary);
}
.btn-nav {
    background: var(--secondary);
    color: var(--dark) !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}
.btn-nav:hover {
    background: #FFD700;
    color: var(--dark) !important;
}

/* ---------- MATRIX CANVAS ---------- */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15; /* subtle effect */
}
.main-wrapper {
    position: relative;
    z-index: 1;
}
/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1F4432;
    --secondary: #82A79E;
    --bg: #F4F5F7;
    --dark: #22262C;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    --radius: 20px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* ---------- GLASSMORPHISM ---------- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: transparent;
    color: var(--dark);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: #2a5a44;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 68, 50, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-success {
    background: #25D366;
    color: white;
}
.btn-success:hover {
    background: #1ebe5c;
}

.btn-danger {
    background: #dc3545;
    color: white;
}
.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* ---------- SECTIONS ---------- */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
}

/* ---------- PRELOADER ---------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
#preloader.hide {
    opacity: 0;
    pointer-events: none;
}
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--secondary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- HERO ---------- */
.hero {
    background: linear-gradient(135deg, #0b1a15 0%, var(--primary) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(130, 167, 158, 0.1) 0%, transparent 60%);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-content .hero-sub {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 30px;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}
.hero-cta .btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.hero-seats {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 25px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.seat-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.seat-icon {
    font-size: 1.8rem;
}
.seat-text strong {
    color: #FFD700;
}
.progress-bar {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    margin: 10px 0;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), #FFD700);
    border-radius: 50px;
    transition: width 0.5s ease;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.network-animation {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 30px;
}
.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(130, 167, 158, 0.6);
    animation: floatNode 4s ease-in-out infinite alternate;
}
.node-1 { top: 20%; left: 10%; animation-delay: 0s; }
.node-2 { top: 70%; right: 10%; animation-delay: 1s; }
.node-3 { bottom: 20%; left: 40%; animation-delay: 2s; }
.node-4 { top: 30%; right: 30%; animation-delay: 0.5s; }
.node-5 { bottom: 40%; left: 70%; animation-delay: 1.5s; }
.node-6 { top: 10%; right: 50%; animation-delay: 2.5s; }
@keyframes floatNode {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.2); }
}
.glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(130, 167, 158, 0.2);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite;
}
@keyframes ringPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.2; }
}

.hero-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFD700;
}
.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ---------- ABOUT ---------- */
.about {
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.about-card {
    background: var(--bg);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}
.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.about-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}
.about-card h3 {
    margin-bottom: 10px;
}

/* ---------- LEARN ---------- */
.learn {
    background: var(--bg);
}
.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.learn-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    border-left: 4px solid var(--secondary);
}
.learn-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.learn-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    opacity: 0.6;
    min-width: 40px;
}
.learn-item h4 {
    font-weight: 500;
}

/* ---------- DETAILS ---------- */
.details {
    background: var(--white);
}
.details-card {
    padding: 40px;
    background: var(--bg);
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.detail-item {
    padding: 15px;
    background: var(--white);
    border-radius: 12px;
    text-align: center;
}
.detail-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 5px;
}
.detail-value {
    font-weight: 600;
    font-size: 1.1rem;
}
.detail-value.highlight {
    color: var(--primary);
    font-size: 1.3rem;
}
.text-danger {
    color: #dc3545;
}

/* ---------- URGENCY ---------- */
.urgency {
    background: linear-gradient(135deg, var(--primary), #0d2a1e);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}
.urgency-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
}
.urgency-content p {
    font-size: 1.4rem;
    opacity: 0.8;
    margin: 10px 0 30px;
}
.urgency-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 30px;
}
.urgency-seats {
    font-size: 2rem;
    margin-bottom: 30px;
}
.urgency-count {
    font-weight: 800;
    color: #FFD700;
    font-size: 3rem;
}
.urgency-total {
    opacity: 0.6;
}
.urgency .btn-primary {
    background: #FFD700;
    color: var(--dark);
}
.urgency .btn-primary:hover {
    background: #f0c000;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

/* ---------- REGISTRATION ---------- */
.register {
    background: var(--bg);
}
.register-card {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
}
.register-sub {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.7;
}
.seat-status {
    background: #f0f7f5;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid var(--secondary);
}
.seat-status strong {
    color: var(--primary);
}
.progress-bar.small {
    height: 6px;
    margin-top: 8px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg);
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 68, 50, 0.1);
}
.required {
    color: #dc3545;
    margin-left: 2px;
}
.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 20px;
}
.form-group.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}
.form-group.checkbox label {
    font-weight: normal;
}
.form-group.checkbox input {
    width: auto;
    margin-top: 3px;
}
.form-actions {
    margin-top: 30px;
}
.form-status {
    margin-top: 15px;
    text-align: center;
}
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ---------- FAQ ---------- */
.faq {
    background: var(--white);
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.faq-question {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--dark);
}
.faq-question:hover {
    color: var(--primary);
}
.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 10px;
    opacity: 0.7;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 10px 10px 0;
}

/* ---------- SUCCESS PAGE ---------- */
.success-page {
    padding: 80px 0;
    background: var(--bg);
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.success-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px;
    text-align: center;
    background: var(--white);
}
.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}
.success-details {
    text-align: left;
    margin: 30px 0;
    background: var(--bg);
    padding: 20px;
    border-radius: 16px;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-row .label {
    font-weight: 600;
    opacity: 0.6;
}
.detail-row .value {
    font-weight: 500;
}
.detail-row .value.highlight {
    color: var(--primary);
    font-weight: 700;
}
.success-message {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    color: #2e7d32;
}
.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
}
.success-actions .btn {
    min-width: 160px;
}
.success-contact {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ---------- ADMIN ---------- */
.admin-login-page {
    background: linear-gradient(135deg, var(--primary), #0d2a1e);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}
.login-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
}
.login-card h1 {
    color: var(--primary);
    font-size: 2rem;
}
.login-card p {
    opacity: 0.7;
    margin-bottom: 25px;
}
.login-card .form-group {
    margin-bottom: 20px;
    text-align: left;
}
.login-footer {
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.admin-header {
    background: var(--primary);
    color: var(--white);
    padding: 15px 0;
}
.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.admin-brand h2 {
    font-size: 1.3rem;
}
.admin-nav a {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}
.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.admin-content {
    padding: 30px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
}
.stat-label {
    opacity: 0.6;
    font-size: 0.9rem;
}
.dashboard-section {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}
.dashboard-section h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}
.progress-bar.large {
    height: 20px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.admin-table th {
    background: var(--bg);
    font-weight: 600;
}
.admin-toolbar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}
.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}
.filter-form input,
.filter-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}
.status-badge.confirmed {
    background: #d4edda;
    color: #155724;
}
.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}
.footer-brand h2 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.footer-brand p {
    opacity: 0.6;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.footer-contact {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.8;
}
.footer-links h3,
.footer-social h3 {
    color: white;
    margin-bottom: 15px;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    opacity: 0.7;
    transition: var(--transition);
}
.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
}
.social-icons {
    display: flex;
    gap: 15px;
    font-size: 1.6rem;
}
.social-icons a {
    opacity: 0.6;
    transition: var(--transition);
}
.social-icons a:hover {
    opacity: 1;
}
.footer-address {
    margin-top: 15px;
    opacity: 0.6;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-visual .network-animation {
        width: 200px;
        height: 200px;
    }
    .hero-stats {
        justify-content: center;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 50px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    .register-card {
        padding: 20px;
    }
    .success-card {
        padding: 30px 20px;
    }
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .admin-header .container {
        flex-direction: column;
        gap: 10px;
    }
    .admin-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-form {
        flex-direction: column;
    }
    .urgency-content h2 {
        font-size: 2rem;
    }
    .hero-seats {
        padding: 15px;
    }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}