* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #000137;
    --primary-cyan: #12b8b9;
    --bg-primary: #0a0e27;
    --bg-secondary: #0f1535;
    --bg-accent: rgba(18, 184, 185, 0.1);
    --border-color: #1a2456;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #12b8b9;
    --accent-hover: #0da5a6;
}

body.light-theme {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-accent: rgba(18, 184, 185, 0.08);
    --border-color: #e0e8f0;
    --text-primary: #1a1a2e;
    --text-secondary: #666;
    --accent-color: #12b8b9;
    --accent-hover: #0da5a6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji';
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-primary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

body.light-theme {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-in-out 2s forwards;
}

.splash-content {
    text-align: center;
}

.splash-gif {
    max-width: 400px;
    max-height: 300px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    animation: slideDown 0.8s ease;
    display: block;
    margin-bottom: 2rem;
}

.splash-loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.splash-text {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Navigation Wrapper - Top Center with spacing */
.nav-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: auto;
    max-width: 90%;
}

/* Navigation Container */
.nav-container {
    background: rgba(10, 14, 39, 0.6);
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.18);
}

body.light-theme .nav-container {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

body:not(.light-theme) .nav-container {
    background: rgba(0, 0, 0, 0.12);
}

.nav-logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-cyan);
}

.nav-badge {
    font-size: 0.65rem;
    color: var(--text-secondary);
    background: rgba(18, 184, 185, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.nav-items {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.9rem;
}

.nav-icon {
    font-size: 1.1rem;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-cyan);
    background: rgba(18, 184, 185, 0.1);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    
}

.theme-toggle:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 80px);
    padding-top: 100px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-box {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 8px rgba(18, 184, 185, 0.3);
}

/* Affiliate Page */
.affiliate-container {
    max-width: 900px;
}

.affiliate-text {
    color: var(--text-primary);
    line-height: 1.8;
}

.affiliate-text p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.affiliate-text h3 {
    font-size: 1.3rem;
    color: var(--primary-cyan);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.affiliate-text ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.affiliate-text ul li {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.affiliate-text ul li:before {
    content: "▸";
    color: var(--primary-cyan);
    position: absolute;
    left: 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--primary-cyan);
    background: var(--bg-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(18, 184, 185, 0.2);
}

.card-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1;
    min-height: 3.5rem;
}

.card-flag-img {
    width: 32px;
    height: 24px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px var(--border-color);
}

.card-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-url {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    word-break: break-all;
}

.card-status {
    display: inline-block;
    background: rgba(18, 184, 185, 0.2);
    color: var(--primary-cyan);
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.card-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Back Button */
.back-btn {
    display: inline-block;
    color: var(--primary-cyan);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--primary-cyan);
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.back-btn:hover {
    background: rgba(18, 184, 185, 0.1);
}

/* Details Page */
.details-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2rem;
}

.details-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.details-title-section h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.target-url {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Timer Container */
.timer-container {
    background: rgba(18, 184, 185, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.timer-container h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.timer-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-cyan);
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.timer-warning {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 0, 0, 0.15);
    border-left: 3px solid #ff4444;
    color: #ff6666;
    border-radius: 3px;
    font-size: 0.9rem;
    display: none;
    animation: pulse 1s infinite;
}

.timer-warning.show {
    display: block;
}

.timer-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.details-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-section {
    padding: 1.5rem;
    background: rgba(18, 184, 185, 0.05);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.info-section h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.price-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-cyan);
}

.overview-content {
    line-height: 1.6;
    color: var(--text-primary);
}

.overview-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 4px;
}

.overview-content p {
    margin-bottom: 1rem;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    background: rgba(18, 184, 185, 0.2);
    color: var(--primary-cyan);
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.created-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Disclosure Section */
.disclosure-section {
    grid-column: 1 / -1;
}

.disclosure-icons-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.icon-tooltip {
    position: relative;
    display: inline-block;
}

.icon-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.icon-btn:hover {
    border-color: var(--primary-cyan);
    background: rgba(18, 184, 185, 0.15);
}

.icon-btn.active {
    background: rgba(18, 184, 185, 0.3);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(18, 184, 185, 0.4);
}

.tooltip-text {
    visibility: hidden;
    width: 100px;
    background-color: var(--primary-dark);
    color: var(--primary-cyan);
    text-align: center;
    border: 1px solid var(--primary-cyan);
    border-radius: 4px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -50px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
}

.icon-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.disclosure-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.active-disclosures {
    padding: 1rem;
    background: rgba(18, 184, 185, 0.1);
    border-left: 3px solid var(--primary-cyan);
    border-radius: 4px;
}

.active-disclosures h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--primary-cyan);
}

.active-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.active-item {
    background: rgba(18, 184, 185, 0.2);
    color: var(--primary-cyan);
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Gallery Styles */
.gallery-section {
    grid-column: 1 / -1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.gallery-item {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    aspect-ratio: 1;
}

.gallery-item:hover {
    border-color: var(--primary-cyan);
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.document {
    background: rgba(18, 184, 185, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 6px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--primary-cyan);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--primary-cyan);
}

/* Privacy Alert */
.privacy-alert {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff4444;
    border-radius: 6px;
    padding: 1.5rem;
    grid-column: 1 / -1;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy-alert h3 {
    color: #ff6666;
    margin-bottom: 0.5rem;
}

.privacy-alert p {
    color: var(--text-secondary);
}

/* Contact */
.contact-container {
    max-width: 600px;
}

.contact-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-section h3 {
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.copy-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.copy-btn {
    padding: 0.5rem 1.5rem;
    background: var(--primary-cyan);
    color: var(--primary-dark);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.contact-note {
    background: rgba(18, 184, 185, 0.1);
    border-left: 3px solid var(--primary-cyan);
    padding: 1rem;
    border-radius: 4px;
    color: var(--primary-cyan);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .nav-items {
        gap: 1rem;
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .nav-item span:last-child {
        display: none;
    }

    .theme-toggle {
        order: 3;
    }

    .container {
        padding-top: 120px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .details-content {
        grid-template-columns: 1fr;
    }

    .disclosure-icons-wrapper {
        gap: 0.5rem;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .timer-display {
        font-size: 2rem;
    }

    .card-flag {
        font-size: 2.5rem;
    }
}