* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --space-dark: #0a0a1a;
    --space-blue: #0f4c75;
    --nebula-purple: #4a1e7c;
    --capsule-glow: #00adb5;
    --text-light: #f0f0f0;
    --accent-gold: #ffd166;
    --accent-pink: #ff6b9d;
    --accent-teal: #4ecdc4;
    --status-sealed: #00adb5;
    --status-upcoming: #ffd166;
    --status-ready: #4CAF50;
    --status-opened: #9c9c9c;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--space-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(79, 31, 124, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(15, 76, 117, 0.1) 0%, transparent 50%);
}

.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(120, 119, 198, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 119, 198, 0.2) 0%, transparent 40%),
        linear-gradient(to bottom, #0a0a1a, #1a1a2e);
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, #fff, transparent),
        radial-gradient(1px 1px at 90px 40px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 8s infinite alternate;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    color: var(--capsule-glow);
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 173, 181, 0.5));
    animation: pulse 4s infinite alternate;
}

.logo-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #f0f0f0, var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.stats {
    display: flex;
    gap: 30px;
    background: rgba(10, 10, 26, 0.7);
    padding: 15px 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 173, 181, 0.2);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 70px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-teal);
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.vault-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.vault-section h2 i {
    color: var(--accent-gold);
}

.vault-container {
    background: rgba(10, 10, 26, 0.6);
    border-radius: 20px;
    padding: 30px;
    min-height: 500px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.vault-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--capsule-glow), transparent);
}

.capsules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.capsule {
    background: linear-gradient(145deg, rgba(15, 76, 117, 0.4), rgba(74, 30, 124, 0.3));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    width: 180px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.capsule:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 173, 181, 0.3);
    border-color: var(--capsule-glow);
}

.capsule-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: radial-gradient(circle at center, transparent 30%, var(--capsule-color) 100%);
    opacity: 0.3;
    filter: blur(10px);
}

.capsule-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    z-index: 1;
}

.capsule-title {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    z-index: 1;
    margin-bottom: 8px;
    padding: 0 5px;
}

.capsule-date {
    font-size: 0.8rem;
    opacity: 0.8;
    z-index: 1;
}

.capsule-status {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 1;
}

.status-sealed { background-color: var(--status-sealed); box-shadow: 0 0 10px var(--status-sealed); }
.status-upcoming { background-color: var(--status-upcoming); box-shadow: 0 0 10px var(--status-upcoming); animation: pulse 2s infinite; }
.status-ready { background-color: var(--status-ready); box-shadow: 0 0 15px var(--status-ready); animation: pulse 1s infinite; }
.status-opened { background-color: var(--status-opened); }

.control-panel {
    background: rgba(10, 10, 26, 0.7);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
}

.control-panel h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--accent-teal);
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--space-blue), var(--nebula-purple));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 76, 117, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.date-filter {
    margin-top: 30px;
}

.date-filter h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent-teal);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-light);
}

.filter-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filter-option.active {
    background: rgba(0, 173, 181, 0.2);
    border-left: 4px solid var(--capsule-glow);
}

.filter-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--capsule-glow);
    transform: translateY(-5px);
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(145deg, rgba(15, 76, 117, 0.95), rgba(74, 30, 124, 0.95));
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(0, 173, 181, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.detail-modal-content {
    max-width: 1000px !important;
    width: 95%;
}

.detail-modal-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(255, 99, 132, 0.5);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-right: 40px;
}

.modal-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent-teal);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.capsule-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-capsule {
    width: 150px;
    height: 180px;
    margin-bottom: 20px;
}

.large-preview {
    width: 200px !important;
    height: 240px !important;
}

.capsule-content {
    background: transparent;
    padding: 20px 0;
    margin-top: 10px;
    max-height: 350px;
    overflow-y: auto;
    line-height: 1.8;
    white-space: pre-line;
    font-size: 1rem;
    color: #e5e9f0;
    border: none;
    box-shadow: none;
}

.video-container {
    margin-top: 25px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border: 1px solid var(--accent-pink);
}

.video-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    display: block;
}

.locked-message-overlay {
    background: transparent;
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    border: 2px dashed var(--capsule-glow);
    margin-top: 20px;
}

.countdown-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--capsule-glow);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    font-family: monospace;
    background: transparent;
}

.countdown-display-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-teal);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    letter-spacing: 2px;
    font-family: monospace;
    background: transparent;
}

.status-badge {
    font-size: 1.1rem;
    padding: 12px 30px !important;
    display: inline-block;
    border-radius: 30px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05) !important;
}

.open-section {
    margin-top: 30px;
}

.btn-lg {
    padding: 15px !important;
    font-size: 1.2rem !important;
}

.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--capsule-glow);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.capsule {
    animation: float 6s ease-in-out infinite;
}

.capsule:nth-child(2) { animation-delay: 1s; }
.capsule:nth-child(3) { animation-delay: 2s; }
.capsule:nth-child(4) { animation-delay: 3s; }
.capsule:nth-child(5) { animation-delay: 4s; }
.capsule:nth-child(6) { animation-delay: 5s; }

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .capsules-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .detail-modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .capsules-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .countdown-display-large {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .capsules-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .capsule {
        width: 100%;
        max-width: 160px;
    }
    
    .logo-text h1 {
        font-size: 2.2rem;
    }
    
    .countdown-display-large {
        font-size: 1.5rem;
    }
}