* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Optimistic Display';
    src: url('optimistic_display_bd.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Optimistic Text';
    src: url('optimistic_text_a_rg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

:root {
    --navy-dark: #041d32;
    --navy-medium: #3a5a96;
    --navy-light: #4a72b8;
    --accent-blue: #6a89dd;
    --accent-light: #94d9ff;
    --white: #ffffff;
    --gray-light: #f5f7fa;
    --gray-medium: #cbd5e1;
    --success: #00b4ff;
}

body {
    font-family: 'Optimistic Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: url('bg5.webp') center center / cover no-repeat fixed;
    /* Previous solid color: background: #041d32; */
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
    z-index: 0;
}

/* All gradient overlays and animations removed */

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


@keyframes float {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}


/* Pure background color - no gradients */


.background-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.8);
    padding: 10px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.layout-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.8);
    padding: 8px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.layout-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid rgba(132, 201, 255, 0.3);
    background: rgba(90, 121, 205, 0.3);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.layout-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent-light);
    background: rgba(132, 201, 255, 0.4);
}

.layout-btn.active {
    border-color: var(--accent-light);
    background: rgba(132, 201, 255, 0.5);
    box-shadow: 0 0 10px rgba(132, 201, 255, 0.5);
}

.bg-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(74, 105, 189, 0.3);
    background: linear-gradient(135deg, var(--navy-medium), var(--accent-blue));
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.bg-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent-light);
}

.bg-btn.active {
    border-color: var(--accent-light);
    box-shadow: 0 0 15px rgba(116, 185, 255, 0.5);
}

.bg-btn.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 40px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-top: -20px;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease 0.1s both;
}

header.loaded {
    animation: fadeInDown 0.8s ease both;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: -10px;
    margin-left: 15px; /* Moved 15px to the right */
}

.logo-img {
    width: 298px;
    height: 298px;
    object-fit: contain;
    /* Removed drop-shadow and animation */
}

/* Pulse animation removed */

.launch-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
    margin-bottom: 15px;
    margin-top: -30px;
    padding: 15px 18px;
    background: linear-gradient(135deg,
        rgba(0, 200, 255, 0.15) 0%,
        rgba(0, 150, 255, 0.1) 25%,
        rgba(100, 200, 255, 0.12) 50%,
        rgba(0, 180, 255, 0.15) 75%,
        rgba(50, 220, 255, 0.18) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 20px;
    border: 1px solid rgba(0, 200, 255, 0.4);
    box-shadow:
        inset 0 0 20px rgba(0, 200, 255, 0.15),
        inset 0 2px 10px rgba(255, 255, 255, 0.3),
        0 8px 20px rgba(0, 150, 255, 0.2),
        0 0 25px rgba(0, 200, 255, 0.15);
    max-width: 157px;
    margin: 0 auto;
    overflow: hidden;
    animation: subtleGlow 8s ease-in-out infinite;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
}

.launch-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 40%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 60%,
        transparent 100%
    );
    pointer-events: none;
    animation: shimmerSlide 6s linear infinite;
    mix-blend-mode: overlay;
    border-radius: inherit;
}

.launch-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(0, 200, 255, 0.05) 50%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: flowGradient 12s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

.launch-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 200, 255, 0.5);
}

.launch-date {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(90deg,
        #00c8ff 0%,
        #ffffff 20%,
        #00e5ff 40%,
        #ffffff 60%,
        #00b4ff 80%,
        #00c8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: shimmerMove 3s linear infinite;
    position: relative;
    filter: drop-shadow(0 2px 10px rgba(0, 200, 255, 0.6));
    white-space: nowrap;
}

.launch-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 80px;
    background: radial-gradient(ellipse at center,
        rgba(0, 200, 255, 0.2) 0%,
        rgba(0, 150, 255, 0.1) 40%,
        transparent 70%);
    filter: blur(20px);
    animation: glowPulse 10s ease-in-out infinite;
    z-index: -1;
    mix-blend-mode: screen;
}

@keyframes shimmerMove {
    0% {
        background-position: -100% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@keyframes shimmerSlide {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

@keyframes subtleGlow {
    0%, 100% {
        box-shadow:
            inset 0 0 20px rgba(0, 200, 255, 0.15),
            inset 0 2px 10px rgba(255, 255, 255, 0.3),
            0 8px 20px rgba(0, 150, 255, 0.2),
            0 0 25px rgba(0, 200, 255, 0.15);
    }
    50% {
        box-shadow:
            inset 0 0 25px rgba(0, 200, 255, 0.2),
            inset 0 2px 12px rgba(255, 255, 255, 0.35),
            0 10px 25px rgba(0, 150, 255, 0.25),
            0 0 30px rgba(0, 200, 255, 0.2);
    }
}

@keyframes liquidMove {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.01);
    }
}

.launch-banner:hover {
    animation: liquidMove 2s ease-in-out infinite, subtleGlow 8s ease-in-out infinite;
    border-color: rgba(0, 200, 255, 0.6);
    transform: translateY(-2px);
}

@keyframes flowGradient {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.slots-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 10px; /* Moved down 20px from -10px */
    animation: fadeInUp 0.8s ease 0.2s both;
}

.slots-header h2 {
    font-family: 'Optimistic Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg,
        rgba(0, 150, 255, 1) 0%,
        rgba(255, 255, 255, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slots-description {
    color: var(--gray-medium);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.counter-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.slots-counter,
.reach-counter {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(4, 29, 50, 0.85), rgba(10, 40, 70, 0.85));
    border: 1.5px solid rgba(116, 185, 255, 0.5);
    border-radius: 25px;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 180, 255, 0.2),
                0 0 25px rgba(0, 180, 255, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.slots-counter .filled,
.reach-counter .current {
    color: var(--success);
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 180, 255, 0.5);
}

.slots-counter .total,
.reach-counter .goal {
    color: var(--accent-light);
    font-weight: 600;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 810px; /* Reduced by 10% from 900px */
    margin: 0 auto;
    animation: floatInFromBottom 1s ease-out 0.3s both;
}

.slot {
    background: rgba(4, 29, 50, 0.3);
    border: 1px solid rgba(74, 105, 189, 0.2);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.15s ease-out;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    margin-bottom: 8px;
    will-change: transform;
}

.slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(116, 185, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.slot:hover::before {
    left: 100%;
}

.slot.filled {
    background: rgba(74, 105, 189, 0.08);
    border-color: rgba(116, 185, 255, 0.25);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 242, 234, 0.08),
                0 0 15px rgba(0, 242, 234, 0.04);
}

.slot.filled:hover {
    background: rgba(74, 105, 189, 0.12);
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(0, 242, 234, 0.4);
    box-shadow: 0 4px 15px rgba(0, 242, 234, 0.15),
                0 0 20px rgba(0, 242, 234, 0.08);
    z-index: 10;
}

/* Remove visited and focus states that create bright lines */
.slot.filled:visited {
    border-color: rgba(116, 185, 255, 0.25);
}

.slot.filled:focus {
    outline: none;
    border-color: rgba(116, 185, 255, 0.25);
}

.slot.filled:active {
    border-color: rgba(116, 185, 255, 0.25);
}

.slot.empty {
    opacity: 0.4;
    background: rgba(4, 29, 50, 0.15);
    border-color: rgba(74, 105, 189, 0.1);
}

.slot-number {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent-blue);
    min-width: 35px;
    opacity: 0.7;
}

.slot-content {
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
}

.slot-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

/* Ensure layout-2 overrides the default column layout */
body.layout-2 .slot-info {
    flex-direction: row !important;
    align-items: center !important;
}

/* Ensure layout-2 shows the meta data */
body.layout-2 .slot-meta {
    display: flex !important;
}

.slot-meta {
    display: none; /* Hidden by default, shown by layout classes */
}

.slot-category,
.slot-followers {
    /* Will be styled by layout classes */
    display: none; /* Hidden by default, shown by layout classes */
}

.slot-name {
    font-size: 1rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1; /* Allow name to shrink if needed */
    min-width: 0; /* Allow flex item to shrink below content size */
}

.slot-status {
    font-size: 0.75rem;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-left: auto;
    flex-shrink: 0; /* Don't allow status text to shrink */
    white-space: nowrap;
}

.slot.empty .slot-name {
    color: var(--gray-medium);
    font-style: italic;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatInFromBottom {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .slots-header h2 {
        font-size: 2rem;
    }

    .slots-counter {
        padding: 9px 18px;
        font-size: 0.9rem;
    }

    .slots-counter .filled,
    .slots-counter .total {
        font-size: 0.9rem;
    }

    .slots-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .slot-name {
        font-size: 0.95rem;
    }

    .slot-status {
        font-size: 0.65rem; /* Slightly larger for better consistency */
        letter-spacing: 0.3px;
    }

    .logo-img {
        width: 212px;
        height: 212px;
    }

    .launch-banner {
        max-width: 126px; /* 20% smaller than 157px */
        padding: 12px 14px; /* 20% smaller padding */
        -webkit-transform: translateZ(0); /* Force hardware acceleration on iOS */
        transform: translateZ(0);
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .launch-text {
        font-size: 0.6rem; /* 20% smaller */
    }

    .launch-date {
        font-size: 0.92rem; /* 20% smaller than 1.15rem */
        letter-spacing: 2.4px; /* 20% smaller */
    }

    .background-switcher {
        top: 10px;
        right: 10px;
    }

    .bg-btn {
        width: 25px;
        height: 25px;
    }
}

/* Sphere Variation Selector */
.sphere-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.sphere-selector select {
    background: linear-gradient(135deg,
        rgba(30, 50, 90, 0.9),
        rgba(50, 80, 130, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(150, 210, 255, 0.3);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sphere-selector select:hover {
    border-color: rgba(150, 210, 255, 0.5);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(150, 210, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sphere-selector select:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(150, 210, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sphere-selector select option {
    background: #041d32;
    color: var(--white);
    padding: 5px;
}

@media (max-width: 768px) {
    .sphere-selector {
        top: 10px;
        right: 10px;
    }

    .sphere-selector select {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.15s ease-out;
    pointer-events: none;
}

.lightbox.active {
    pointer-events: auto;
}

.lightbox.active .lightbox-content,
.lightbox.active .lightbox-close {
    pointer-events: auto;
}

.lightbox.active {
    display: block;
    opacity: 1;
}

.lightbox-content {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: none;
    width: auto;
    position: relative;
    box-shadow: none;
    animation: lightboxSlideIn 0.3s ease;
}

@keyframes lightboxSlideIn {
    from {
        transform: translateY(10px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(4, 29, 50, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(150, 210, 255, 0.3);
    border-radius: 50%;
    color: var(--accent-light);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(4, 29, 50, 0.95);
    border-color: var(--accent-light);
    transform: scale(1.1);
}

.lightbox-content h3 {
    display: none;
}

.lightbox-content .creator-name {
    display: none;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 50px;
    height: 50px;
    padding: 0;
    background: rgba(4, 29, 50, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(150, 210, 255, 0.5);
    border-radius: 12px;
    color: var(--accent-light);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5),
                0 0 12px rgba(150, 210, 255, 0.1);
}

.social-btn:hover {
    background: rgba(4, 29, 50, 1);
    border-color: var(--accent-light);
    transform: scale(1.15);
    box-shadow:
        0 4px 15px rgba(150, 210, 255, 0.4),
        0 0 18px rgba(150, 210, 255, 0.3);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn span {
    display: none;
}

/* Removed platform-specific hover colors */

@media (max-width: 768px) {
    .social-buttons {
        gap: 12px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
    }

    .social-btn svg {
        width: 22px;
        height: 22px;
    }

    .social-btn span {
        display: none;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}