@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Kantumruy+Pro:wght@300;400;500;600;700&display=swap');



/* Color Variables - Dark Mode (Default) */

:root {

    --bg-dark: #09090b;

    --bg-darker: #040405;

    --card-bg: rgba(20, 20, 25, 0.65);

    --border-color: rgba(255, 255, 255, 0.08);

    --border-glow: rgba(255, 0, 80, 0.2);

    

    --text-primary: #f4f4f5;

    --text-secondary: #a1a1aa;

    --text-muted: #71717a;

    

    --primary-gradient: linear-gradient(135deg, #ff0050 0%, #00f2fe 100%);

    --tiktok-pink: #ff0050;

    --tiktok-cyan: #00f2fe;

    

    --font-heading: 'Outfit', 'Kantumruy Pro', sans-serif;

    --font-body: 'Inter', 'Kantumruy Pro', sans-serif;

    

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);

    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);

    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);

    --glow-shadow: 0 0 25px rgba(255, 0, 80, 0.35);



    /* Modal backgrounds */

    --modal-bg: #0f0f13;

    --activation-overlay-bg: #040405;

}



/* Light Mode Variables */

body.light-mode,

html.light-mode body {

    --bg-dark: #f0f2f5;

    --bg-darker: #e4e7ec;

    --card-bg: rgba(255, 255, 255, 0.85);

    --border-color: rgba(0, 0, 0, 0.08);

    --border-glow: rgba(255, 0, 80, 0.2);



    --text-primary: #18181b;

    --text-secondary: #52525b;

    --text-muted: #a1a1aa;



    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);

    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);

    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);

    --glow-shadow: 0 0 25px rgba(255, 0, 80, 0.25);



    /* Modal backgrounds */

    --modal-bg: #ffffff;

    --activation-overlay-bg: #f0f2f5;

}



/* Smooth theme transitions */

*, *::before, *::after {

    transition-property: background-color, background, border-color, color, box-shadow;

    transition-duration: 0.3s;

    transition-timing-function: ease;

}



/* Base Styles */

*, *:not([class*='transition-']) {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    background-color: var(--bg-dark);

    background-image: 

        radial-gradient(at 0% 0%, rgba(255, 0, 80, 0.15) 0px, transparent 50%),

        radial-gradient(at 100% 100%, rgba(0, 242, 254, 0.12) 0px, transparent 50%);

    background-attachment: fixed;

    color: var(--text-primary);

    font-family: var(--font-body);

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    overflow-x: hidden;

    line-height: 1.6;

}



.light-mode {

    background-image: 

        radial-gradient(at 0% 0%, rgba(255, 0, 80, 0.08) 0px, transparent 50%),

        radial-gradient(at 100% 100%, rgba(0, 242, 254, 0.06) 0px, transparent 50%);

}



a {

    color: inherit;

    text-decoration: none;

}



button, input, select {

    font-family: inherit;

    outline: none;

}



/* Scrollbar */

::-webkit-scrollbar {

    width: 8px;

}

::-webkit-scrollbar-track {

    background: var(--bg-darker);

}

::-webkit-scrollbar-thumb {

    background: rgba(255, 255, 255, 0.15);

    border-radius: 4px;

}

::-webkit-scrollbar-thumb:hover {

    background: rgba(255, 255, 255, 0.3);

}



/* Container */

.container {

    max-width: 1200px;

    width: 100%;

    margin: 0 auto;

    padding: 0 24px;

    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;

}



/* Header */

.app-header {
    padding: 0 24px;
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Distinctive glassy background — stands out from body */
    background: linear-gradient(
        135deg,
        rgba(255, 0, 80, 0.12) 0%,
        rgba(10, 10, 16, 0.92) 40%,
        rgba(0, 242, 254, 0.10) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 0, 80, 0.25);
    box-shadow:
        0 1px 0 rgba(255, 0, 80, 0.15),
        0 4px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    /* Subtle animated gradient underline */
    animation: headerShimmer 8s ease-in-out infinite;
}

@keyframes headerShimmer {
    0%   { border-bottom-color: rgba(255, 0, 80, 0.3); box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 30px rgba(255,0,80,0.05) inset; }
    50%  { border-bottom-color: rgba(0, 242, 254, 0.3); box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 30px rgba(0,242,254,0.07) inset; }
    100% { border-bottom-color: rgba(255, 0, 80, 0.3); box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 30px rgba(255,0,80,0.05) inset; }
}



.logo {

    display: flex;

    align-items: center;

    gap: 12px;

}



.logo-icon {

    width: 44px;

    height: 44px;

    background: #000000;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3), 0 4px 12px rgba(255, 0, 80, 0.3);

    animation: rotateLogo 8s linear infinite;

}



.logo-text {

    font-family: var(--font-heading);

    font-size: 24px;

    font-weight: 800;

    letter-spacing: -0.5px;

    background: var(--primary-gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}



.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}



.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 18px;
    position: relative;
    overflow: visible;
}



.btn-icon:hover {
    background: rgba(255, 0, 80, 0.1);
    border-color: rgba(255, 0, 80, 0.6);
    transform: translateY(-3px) scale(1.08);
    box-shadow:
        0 0 16px rgba(255, 0, 80, 0.35),
        0 0 4px rgba(255, 0, 80, 0.5) inset;
}

.btn-icon:active {
    transform: translateY(-1px) scale(1.02);
}



.btn-icon svg {

    width: 20px;

    height: 20px;

    fill: currentColor;

}



/* Theme Toggle Icon Custom Rules */

.theme-icon-sun, .theme-icon-moon {
    display: none !important;
}

.theme-icon-sun {
    fill: none !important;
}

.theme-icon-sun circle {
    fill: currentColor !important;
}

.theme-icon-moon {
    fill: currentColor !important;
}

/* Show Sun in Dark Mode, Moon in Light Mode */
body:not(.light-mode) .theme-icon-sun {
    display: block !important;
    color: #ffaa00; /* Warm Gold Sun */
}
.light-mode .theme-icon-moon {
    display: block !important;
    color: #f1c40f; /* Warm golden moon */
}

/* High contrast light mode overrides for header icon buttons */
.light-mode .btn-icon {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--text-primary) !important;
}

.light-mode .btn-icon:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}



/* Micro-animation: Rotate theme icon slightly on hover */

#themeToggleBtn svg {

    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

}

#themeToggleBtn:hover svg {

    transform: rotate(20deg);

}



/* Main Content Area */

.main-content {

    margin-top: 48px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 40px;

}



#douyindlPage {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 40px;

    width: 100%;

}



/* Hero Section */

.hero {

    text-align: center;

    max-width: 750px;

}



.hero h1 {

    font-family: var(--font-heading);

    font-size: 48px;

    font-weight: 800;

    line-height: 1.2;

    margin-bottom: 16px;

    letter-spacing: -1px;

}



.hero h1 span {

    background: var(--primary-gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    position: relative;

}



.hero p {

    font-size: 16px;

    color: var(--text-secondary);

}



/* Downloader Tabs Selector */

.downloader-tabs {

    display: flex;

    justify-content: flex-start;

    gap: 8px;

    margin-bottom: 12px;

    width: 100%;

    max-width: 1200px;

}



.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    letter-spacing: 0.2px;
}



.tab-btn:hover {

    color: var(--text-primary);

    background: rgba(255, 255, 255, 0.06);

    border-color: rgba(255, 255, 255, 0.2);

}



.tab-btn.active {

    background: linear-gradient(135deg, rgba(255,0,80,0.1) 0%, rgba(0,242,254,0.1) 100%);

    border-color: var(--tiktok-cyan);

    color: var(--tiktok-cyan);

    box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);

}



.tab-btn svg {

    width: 16px;

    height: 16px;

}



.light-mode .tab-btn {

    background: rgba(0, 0, 0, 0.02);

}

.light-mode .tab-btn:hover {

    background: rgba(0, 0, 0, 0.04);

}

.light-mode .tab-btn.active {

    background: rgba(0, 242, 254, 0.1);

    color: #0099aa;

    border-color: #0099aa;

    box-shadow: 0 0 8px rgba(0, 242, 254, 0.15);

}



@media (max-width: 600px) {

    .downloader-tabs {

        width: 100%;

        display: grid;

        grid-template-columns: repeat(4, 1fr);

        gap: 6px;

        margin-bottom: 12px;

    }

    .tab-btn {

        padding: 8px 4px;

        font-size: 10px;

        flex-direction: column;

        gap: 4px;

        border-radius: 10px;

        text-align: center;

    }

    .tab-btn svg {

        width: 14px;

        height: 14px;

    }

}



/* Input Card */

.input-card {

    width: 100%;

    max-width: 1200px;

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    border-radius: 24px;

    padding: 8px;

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    display: flex;

    align-items: center;

    box-shadow: var(--shadow-md);

    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

}



.input-card:focus-within {

    border-color: var(--tiktok-pink);

    box-shadow: var(--glow-shadow), var(--shadow-lg);

}



.input-wrapper {

    flex: 1;

    position: relative;

    display: flex;

    align-items: center;

    padding-left: 16px;

}



.input-icon {

    width: 24px;

    height: 24px;

    color: var(--text-muted);

    margin-right: 12px;

}



.input-card input {

    width: 100%;

    background: transparent;

    border: none;

    color: var(--text-primary);

    font-size: 16px;

    padding: 16px 8px;

}



.input-card input::placeholder {

    color: var(--text-muted);

}



.btn-primary {

    background: var(--primary-gradient);

    color: #fff;

    border: none;

    padding: 16px 32px;

    font-size: 16px;

    font-weight: 700;

    border-radius: 18px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 8px;

    transition: all 0.3s ease;

    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.3);

}



.btn-primary:hover {

    transform: translateY(-1px);

    box-shadow: 0 6px 20px rgba(255, 0, 80, 0.5);

    filter: brightness(1.1);

}



.btn-primary:active {

    transform: translateY(1px);

}



/* Loading Spinner Container */

.loader-container {

    display: none;

    flex-direction: column;

    align-items: center;

    gap: 16px;

    margin: 20px 0;

}



.spinner {

    width: 50px;

    height: 50px;

    border: 3px solid rgba(255, 0, 80, 0.1);

    border-radius: 50%;

    border-top-color: var(--tiktok-pink);

    border-bottom-color: var(--tiktok-cyan);

    animation: spin 1s linear infinite;

}



.loader-text {

    font-family: var(--font-heading);

    font-weight: 600;

    color: var(--text-secondary);

    letter-spacing: 0.5px;

}



/* Error message */

.error-card {

    display: none;

    width: 100%;

    max-width: 800px;

    background: rgba(239, 68, 68, 0.1);

    border: 1px solid rgba(239, 68, 68, 0.2);

    border-radius: 16px;

    padding: 20px;

    color: #fca5a5;

    text-align: center;

    backdrop-filter: blur(10px);

}



/* Result Dashboard (Video Details) */

.result-card {

    display: none;

    width: 100%;

    max-width: 1200px;

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    border-radius: 24px;

    padding: 24px;

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    box-shadow: var(--shadow-lg);

    animation: slideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);

}



.result-grid {

    display: grid;

    grid-template-columns: 320px 1fr;

    gap: 36px;

}



.cover-wrapper {

    width: 100%;

    height: 480px;

    position: relative;

    border-radius: 18px;

    overflow: hidden;

    border: 1px solid var(--border-color);

}



.cover-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.play-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.35);

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    cursor: pointer;

    transition: opacity 0.3s ease;

}



.cover-wrapper:hover .play-overlay {

    opacity: 1;

}



.play-btn-circle {

    width: 60px;

    height: 60px;

    border-radius: 50%;

    background: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--bg-dark);

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    transition: transform 0.2s ease;

}



.play-btn-circle:hover {

    transform: scale(1.1);

}



.metadata-panel {

    display: flex;

    flex-direction: column;

    justify-content: space-between;

}



.creator-info {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 16px;

}



.avatar {

    width: 52px;

    height: 52px;

    border-radius: 50%;

    border: 2px solid var(--tiktok-pink);

    padding: 2px;

    background: var(--bg-darker);

}



.avatar img {

    width: 100%;

    height: 100%;

    border-radius: 50%;

    object-fit: cover;

}



.creator-names {

    display: flex;

    flex-direction: column;

}



.nickname {

    font-size: 16px;

    font-weight: 700;

    font-family: var(--font-heading);

}



.username {

    font-size: 13px;

    color: var(--text-secondary);

}



.video-title {

    font-size: 18px;

    font-weight: 600;

    margin-bottom: 20px;

    max-height: 100px;

    overflow-y: auto;

    padding-right: 8px;

}



/* Statistics Badges */

.stats-row {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 24px;

}



.stat-badge {

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid var(--border-color);

    padding: 8px 16px;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 500;

    display: flex;

    align-items: center;

    gap: 8px;

}



.stat-badge svg {

    width: 16px;

    height: 16px;

    fill: var(--text-secondary);

}



/* Download Actions Container */

.action-buttons {

    display: flex;

    flex-direction: row;

    gap: 12px;

    width: 100%;

}



.btn-download {

    padding: 14px 20px;

    border-radius: 14px;

    font-weight: 700;

    font-size: 15px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    transition: all 0.3s ease;

    white-space: nowrap;

}



.btn-download-video {

    flex: 2;

    background: var(--primary-gradient);

    border: none;

    color: #fff;

    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.25);

}



.btn-download-video:hover {

    box-shadow: 0 6px 20px rgba(255, 0, 80, 0.45);

    transform: translateY(-1.5px);

}



.btn-download-audio {

    flex: 1;

    background: rgba(168, 85, 247, 0.06);

    border: 1.5px solid rgba(168, 85, 247, 0.3);

    color: #c084fc;

}



.btn-download-audio:hover {

    background: rgba(168, 85, 247, 0.15);

    border-color: rgba(168, 85, 247, 0.8);

    color: #e9d5ff;

    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);

    transform: translateY(-1.5px);

}



.light-mode .btn-download-audio {

    background: rgba(124, 58, 237, 0.04);

    border-color: rgba(124, 58, 237, 0.2);

    color: #6d28d9;

}



.light-mode .btn-download-audio:hover {

    background: rgba(124, 58, 237, 0.1);

    border-color: rgba(124, 58, 237, 0.6);

    color: #5b21b6;

    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);

}



.btn-download-cover {

    flex: 1;

    background: rgba(6, 182, 212, 0.06);

    border: 1.5px solid rgba(6, 182, 212, 0.3);

    color: #22d3ee;

}



.btn-download-cover:hover {

    background: rgba(6, 182, 212, 0.15);

    border-color: rgba(6, 182, 212, 0.8);

    color: #cffafe;

    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);

    transform: translateY(-1.5px);

}



.light-mode .btn-download-cover {

    background: rgba(13, 148, 136, 0.04);

    border-color: rgba(13, 148, 136, 0.2);

    color: #0f766e;

}



.light-mode .btn-download-cover:hover {

    background: rgba(13, 148, 136, 0.1);

    border-color: rgba(13, 148, 136, 0.6);

    color: #115e59;

    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);

}



/* History / Showcase Section */

.history-section {

    width: 100%;

    max-width: 1200px;

    margin-top: 24px;

    margin-bottom: 60px;

}



.section-title {

    font-family: var(--font-heading);

    font-size: 22px;

    font-weight: 700;

    margin-bottom: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}



.btn-clear-history {

    font-size: 13px;

    font-weight: 600;

    color: var(--tiktok-pink);

    cursor: pointer;

    background: none;

    border: none;

    display: flex;

    align-items: center;

    gap: 4px;

    transition: opacity 0.2s ease;

}



.btn-clear-history:hover {

    opacity: 0.8;

}



.history-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));

    gap: 20px;

}



.history-card {

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    border-radius: 20px;

    overflow: hidden;

    backdrop-filter: blur(8px);

    box-shadow: var(--shadow-sm);

    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

    display: flex;

    flex-direction: column;

}



.history-card:hover {

    transform: translateY(-4px);

    border-color: rgba(255, 255, 255, 0.15);

    box-shadow: var(--shadow-md);

}



.history-cover-wrapper {

    height: 180px;

    width: 100%;

    position: relative;

    overflow: hidden;

}



.history-cover-wrapper img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;

}



.history-card:hover .history-cover-wrapper img {

    transform: scale(1.05);

}



.history-creator-badge {

    position: absolute;

    bottom: 12px;

    left: 12px;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(4px);

    padding: 4px 10px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 600;

    max-width: calc(100% - 24px);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.history-info {

    padding: 16px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    flex: 1;

}



.history-title {

    font-size: 13px;

    font-weight: 500;

    line-height: 1.4;

    height: 38px;

    overflow: hidden;

    text-overflow: ellipsis;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    margin-bottom: 14px;

}



.history-actions {

    display: flex;

    gap: 8px;

}



.btn-history-dl {

    flex: 1;

    padding: 8px 12px;

    font-size: 12px;

    font-weight: 700;

    border-radius: 8px;

    cursor: pointer;

    text-align: center;

    transition: background 0.2s ease;

}



/* Empty State */

.history-empty {

    text-align: center;

    padding: 40px 0;

    color: var(--text-muted);

    border: 1px dashed var(--border-color);

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.01);

}



/* Modal Overlay & Settings */

.modal-overlay {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.7);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    z-index: 1000;

    align-items: center;

    justify-content: center;

    padding: 24px;

}



.settings-modal {

    background: var(--modal-bg);

    border: 1px solid var(--border-color);

    border-radius: 24px;

    width: 100%;

    max-width: 500px;

    box-shadow: var(--shadow-lg);

    animation: modalIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

}



.modal-header {

    padding: 20px 24px;

    border-bottom: 1px solid var(--border-color);

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.modal-header h2 {

    font-family: var(--font-heading);

    font-size: 20px;

    font-weight: 700;

}



.btn-close-modal {

    background: none;

    border: none;

    color: var(--text-secondary);

    font-size: 24px;

    cursor: pointer;

}



.btn-close-modal:hover {

    color: var(--text-primary);

}



.modal-body {

    padding: 24px;

}



.form-group {

    margin-bottom: 20px;

}



.form-group label {

    display: block;

    font-size: 13px;

    font-weight: 600;

    color: var(--text-secondary);

    margin-bottom: 8px;

}



.form-control {

    width: 100%;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    padding: 12px 16px;

    color: var(--text-primary);

    font-size: 14px;

    transition: all 0.3s ease;

}



.form-control:focus {

    border-color: var(--tiktok-cyan);

    background: rgba(255, 255, 255, 0.05);

}



.form-row {

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 16px;

}



.api-mode-selector {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    background: rgba(255, 255, 255, 0.02);

    padding: 4px;

    border-radius: 12px;

    border: 1px solid var(--border-color);

    margin-bottom: 20px;

}



.api-mode-option {

    padding: 10px;

    border-radius: 8px;

    cursor: pointer;

    text-align: center;

    font-size: 13px;

    font-weight: 600;

    color: var(--text-secondary);

    transition: all 0.2s ease;

}



.api-mode-option.active {

    background: rgba(255, 255, 255, 0.08);

    color: var(--text-primary);

    border: 1px solid rgba(255, 255, 255, 0.05);

}



.form-help {

    font-size: 11px;

    color: var(--text-muted);

    margin-top: 6px;

}



.modal-footer {

    padding: 0 24px 24px;

}



/* Animations */

@keyframes spin {

    to { transform: rotate(360deg); }

}



@keyframes rotateLogo {

    0% { filter: hue-rotate(0deg); }

    100% { filter: hue-rotate(360deg); }

}



@keyframes slideUp {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



@keyframes modalIn {

    from {

        opacity: 0;

        transform: translateY(40px) scale(0.95);

    }

    to {

        opacity: 1;

        transform: translateY(0) scale(1);

    }

}



/* Responsive layout */

@media (max-width: 768px) {

    .app-header {
        padding: 0 16px;
        height: 64px;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .logo-text {

        font-size: 20px;

    }

    .hero h1 {

        font-size: 32px;

    }

    .result-grid {

        grid-template-columns: 1fr;

    }

    .cover-wrapper {

        height: 300px;

    }

    .stats-row {

        gap: 8px;

    }

    .stat-badge {

        padding: 6px 12px;

        font-size: 12px;

    }

    .action-buttons {

        flex-direction: column;

    }

    .btn-download {

        width: 100%;

        flex: none;

    }

}



/* User Profile Result Layout */

.profile-card-section {

    display: none;

    width: 100%;

    max-width: 1200px;

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    border-radius: 24px;

    padding: 28px;

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    box-shadow: var(--shadow-lg);

    animation: slideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);

    margin-bottom: 30px;

}



.profile-user-info {

    display: flex;

    align-items: center;

    gap: 24px;

    padding-bottom: 24px;

    border-bottom: 1px solid var(--border-color);

    margin-bottom: 28px;

}



.profile-avatar {

    width: 80px;

    height: 80px;

    border-radius: 50%;

    border: 3px solid var(--tiktok-pink);

    padding: 3px;

    background: var(--bg-darker);

}



.profile-avatar img {

    width: 100%;

    height: 100%;

    border-radius: 50%;

    object-fit: cover;

}



.profile-names-bio {

    flex: 1;

}



.profile-nickname-row {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 4px;

}



.profile-nickname {

    font-family: var(--font-heading);

    font-size: 22px;

    font-weight: 800;

}



.profile-badge {

    background: var(--primary-gradient);

    color: #fff;

    padding: 2px 8px;

    border-radius: 6px;

    font-size: 11px;

    font-weight: 700;

}



.profile-username {

    font-size: 14px;

    color: var(--text-secondary);

    margin-bottom: 8px;

}



.profile-bio {

    font-size: 14px;

    color: var(--text-muted);

}



.profile-grid-title {

    font-family: var(--font-heading);

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 20px;

    border-left: 4px solid var(--tiktok-cyan);

    padding-left: 10px;

}



.profile-videos-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));

    gap: 20px;

}



.profile-video-card {

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid var(--border-color);

    border-radius: 18px;

    overflow: hidden;

    transition: all 0.3s ease;

    display: flex;

    flex-direction: column;

}



.profile-video-card:hover {

    transform: translateY(-4px);

    border-color: rgba(255, 255, 255, 0.15);

    box-shadow: var(--shadow-md);

}



.profile-video-cover-wrapper {

    height: 280px;

    position: relative;

    overflow: hidden;

}



.profile-video-cover-wrapper img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.profile-video-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.4);

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    cursor: pointer;

    transition: opacity 0.3s ease;

}



.profile-video-cover-wrapper:hover .profile-video-overlay {

    opacity: 1;

}



.profile-video-info {

    padding: 16px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    flex: 1;

}



.profile-video-title {

    font-size: 13px;

    font-weight: 500;

    line-height: 1.4;

    height: 38px;

    overflow: hidden;

    text-overflow: ellipsis;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    margin-bottom: 12px;

}



.profile-video-stats {

    display: flex;

    gap: 12px;

    font-size: 11px;

    color: var(--text-secondary);

    margin-bottom: 12px;

}



.profile-video-stats span {

    display: flex;

    align-items: center;

    gap: 4px;

}



.profile-video-actions {

    display: flex;

    gap: 8px;

}



.btn-profile-dl {

    flex: 1;

    padding: 10px;

    font-size: 13px;

    font-weight: 700;

    border-radius: 10px;

    cursor: pointer;

    text-align: center;

    transition: all 0.2s ease;

}



/* Batch Actions & Checkbox styling */

.batch-actions-bar {

    display: none;

    justify-content: space-between;

    align-items: center;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid var(--border-color);

    padding: 16px 24px;

    border-radius: 18px;

    margin-bottom: 24px;

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    animation: slideUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

}



.profile-video-card-select-overlay {

    position: absolute;

    top: 12px;

    left: 12px;

    z-index: 10;

}



.profile-card-checkbox {

    width: 24px;

    height: 24px;

    border-radius: 50%;

    border: 2px solid rgba(255, 255, 255, 0.4);

    background: rgba(9, 9, 11, 0.7);

    cursor: pointer;

    appearance: none;

    -webkit-appearance: none;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);

}



.profile-card-checkbox:hover {

    transform: scale(1.1);

    border-color: var(--tiktok-cyan);

}



.profile-card-checkbox:checked {

    background: var(--tiktok-cyan);

    border-color: var(--tiktok-cyan);

    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);

}



.profile-card-checkbox:checked::after {

    content: "✓";

    color: #000;

    font-size: 13px;

    font-weight: 800;

}



.profile-video-card.selected {

    border-color: var(--tiktok-cyan);

    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15), var(--shadow-md);

    background: rgba(0, 242, 254, 0.02);

}



.batch-dl-progress {

    font-size: 13px;

    font-weight: 600;

    color: var(--tiktok-cyan);

    background: rgba(0, 242, 254, 0.08);

    padding: 8px 16px;

    border-radius: 10px;

    border: 1px solid rgba(0, 242, 254, 0.15);

    animation: pulse 1.5s infinite;

}



/* Batch Download Buttons Base */

.btn-batch {

    padding: 10px 18px;

    font-size: 13px;

    border-radius: 10px;

    font-weight: 700;

    cursor: pointer;

    display: none;

    align-items: center;

    justify-content: center;

    gap: 6px;

    transition: all 0.2s ease;

}



/* Video batch button style */

.btn-batch-video {

    background: var(--primary-gradient);

    border: none;

    color: #fff;

    box-shadow: 0 4px 10px rgba(0, 242, 254, 0.2);

}

.btn-batch-video:hover {

    filter: brightness(1.1);

    transform: translateY(-1px);

}



/* Audio batch button style */

.btn-batch-audio {

    background: rgba(168, 85, 247, 0.08);

    border: 1.5px solid rgba(168, 85, 247, 0.3);

    color: #c084fc;

}

.btn-batch-audio:hover {

    background: rgba(168, 85, 247, 0.15);

    border-color: rgba(168, 85, 247, 0.8);

    color: #e9d5ff;

}

.light-mode .btn-batch-audio {

    background: rgba(124, 58, 237, 0.04);

    border-color: rgba(124, 58, 237, 0.2);

    color: #6d28d9;

}

.light-mode .btn-batch-audio:hover {

    background: rgba(124, 58, 237, 0.1);

    border-color: rgba(124, 58, 237, 0.6);

    color: #5b21b6;

}



/* Cover batch button style */

.btn-batch-cover {

    background: rgba(6, 182, 212, 0.08);

    border: 1.5px solid rgba(6, 182, 212, 0.3);

    color: #22d3ee;

}

.btn-batch-cover:hover {

    background: rgba(6, 182, 212, 0.15);

    border-color: rgba(6, 182, 212, 0.8);

    color: #cffafe;

}

.light-mode .btn-batch-cover {

    background: rgba(13, 148, 136, 0.04);

    border-color: rgba(13, 148, 136, 0.2);

    color: #0f766e;

}

.light-mode .btn-batch-cover:hover {

    background: rgba(13, 148, 136, 0.1);

    border-color: rgba(13, 148, 136, 0.6);

    color: #115e59;

}



@keyframes pulse {

    0% { opacity: 0.7; }

    50% { opacity: 1; }

    100% { opacity: 0.7; }

}



/* Alternative Guides Section */

.guides-section {

    width: 100%;

    max-width: 1200px;

    margin-bottom: 20px;

}



.guides-header {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 24px;

}



.guides-header h2 {

    font-family: var(--font-heading);

    font-size: 20px;

    font-weight: 700;

}



.guides-icon {

    font-size: 24px;

}



.guides-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));

    gap: 24px;

}



.guide-card {

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    border-radius: 20px;

    padding: 24px;

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    box-shadow: var(--shadow-sm);

    transition: all 0.3s ease;

}



.guide-card:hover {

    transform: translateY(-2px);

    border-color: rgba(255, 255, 255, 0.12);

}



.guide-card-header {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 16px;

}



.guide-badge {

    padding: 4px 10px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.guide-badge.red {

    background: rgba(255, 0, 80, 0.15);

    color: #ff3366;

    border: 1px solid rgba(255, 0, 80, 0.25);

}



.guide-badge.cyan {

    background: rgba(0, 242, 254, 0.12);

    color: #00f2fe;

    border: 1px solid rgba(0, 242, 254, 0.25);

}



.guide-card-header h3 {

    font-family: var(--font-heading);

    font-size: 15px;

    font-weight: 700;

}



.guide-card-body p {

    font-size: 13px;

    color: var(--text-secondary);

    margin-bottom: 12px;

}



.guide-card-body ol {

    padding-left: 20px;

}



.guide-card-body li {

    font-size: 13px;

    color: var(--text-secondary);

    margin-bottom: 8px;

    line-height: 1.5;

}



.guide-card-body li strong {

    color: var(--text-primary);

}



/* Translation Button & Box Styles */

.btn-translate {

    background: rgba(0, 242, 254, 0.08);

    border: 1px solid rgba(0, 242, 254, 0.25);

    border-radius: 8px;

    color: var(--tiktok-cyan);

    font-size: 12px;

    font-weight: 600;

    padding: 6px 12px;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    transition: all 0.2s ease;

    margin-top: 4px;

}



.btn-translate:hover {

    background: rgba(0, 242, 254, 0.15);

    border-color: var(--tiktok-cyan);

    transform: translateY(-1px);

    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);

}



.btn-translate svg {

    fill: currentColor;

}



.translation-box {

    background: rgba(255, 255, 255, 0.02);

    border: 1px dashed rgba(255, 255, 255, 0.1);

    border-radius: 12px;

    padding: 12px 16px;

    margin-top: 12px;

    animation: slideUp 0.3s ease-out;

    text-align: left;

}



.translation-header {

    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 11px;

    font-weight: 700;

    color: var(--tiktok-cyan);

    text-transform: uppercase;

    letter-spacing: 0.5px;

    margin-bottom: 6px;

}



.translation-header svg {

    fill: currentColor;

}



#translatedText {

    font-size: 14px;

    color: #e4e4e7;

    line-height: 1.5;

}



/* License Activation Overlay & Screen */

.activation-overlay {

    display: none;

    position: fixed;

    inset: 0;

    background: var(--activation-overlay-bg);

    background-image: 

        radial-gradient(at 0% 0%, rgba(255, 0, 80, 0.25) 0px, transparent 50%),

        radial-gradient(at 100% 100%, rgba(0, 242, 254, 0.22) 0px, transparent 50%);

    z-index: 99999;

    align-items: center;

    justify-content: center;

    padding: 24px;

}



.activation-card {

    background: rgba(20, 20, 25, 0.7);

    border: 1px solid var(--border-color);

    border-radius: 28px;

    width: 100%;

    max-width: 480px;

    padding: 40px;

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(255, 0, 80, 0.15);

    text-align: center;

    animation: modalIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);

}



.activation-logo-icon {

    width: 60px;

    height: 60px;

    background: #000000;

    border: 1px solid rgba(255,255,255,0.15);

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 20px;

    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3), 0 4px 15px rgba(255, 0, 80, 0.3);

}



.activation-card h2 {

    font-family: var(--font-heading);

    font-size: 26px;

    font-weight: 800;

    margin-bottom: 8px;

    background: var(--primary-gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}



.activation-card p {

    font-size: 13px;

    color: var(--text-secondary);

    margin-bottom: 28px;

    line-height: 1.5;

}



.activation-input-wrapper {

    position: relative;

    margin-bottom: 20px;

}



.activation-input {

    width: 100%;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid var(--border-color);

    border-radius: 14px;

    padding: 16px 20px;

    color: white;

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-align: center;

    text-transform: uppercase;

    font-family: monospace;

    transition: all 0.3s ease;

}



.activation-input:focus {

    border-color: var(--tiktok-cyan);

    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);

    background: rgba(255, 255, 255, 0.05);

}



.activation-input::placeholder {

    letter-spacing: normal;

    font-family: var(--font-body);

    font-size: 14px;

    font-weight: normal;

    text-transform: none;

}



.btn-activate {

    width: 100%;

    padding: 16px;

    font-size: 16px;

    font-weight: 700;

    border-radius: 14px;

    margin-top: 10px;

}



.activation-device-info {

    margin-top: 24px;

    font-size: 10px;

    color: var(--text-muted);

    border-top: 1px solid rgba(255, 255, 255, 0.05);

    padding-top: 16px;

    font-family: monospace;

    word-break: break-all;

}



.activation-status-msg {

    margin-top: 16px;

    font-size: 13px;

    font-weight: 600;

    display: none;

    padding: 10px 16px;

    border-radius: 10px;

}



.activation-status-msg.error {

    background: rgba(239, 68, 68, 0.1);

    border: 1px solid rgba(239, 68, 68, 0.2);

    color: #fca5a5;

}



.activation-status-msg.success {

    background: rgba(16, 185, 129, 0.1);

    border: 1px solid rgba(16, 185, 129, 0.2);

    color: #a7f3d0;

}



/* License Info Badge styles */

.license-badge {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 6px 16px;

    height: 44px;

    border-radius: 12px;

    border: 1px solid rgba(0, 242, 254, 0.2);

    background: rgba(0, 242, 254, 0.04);

    color: #00f2fe;

    font-family: var(--font-body);

    font-size: 13px;

    font-weight: 600;

    box-shadow: 0 0 15px rgba(0, 242, 254, 0.08);

    cursor: default;

    transition: all 0.3s ease;

}



.license-badge:hover {

    border-color: rgba(255, 0, 80, 0.3);

    background: rgba(255, 0, 80, 0.04);

    color: #ff0050;

    box-shadow: 0 0 15px rgba(255, 0, 80, 0.1);

}



.license-badge .license-icon {

    font-size: 14px;

}



.license-badge .license-time {

    font-family: monospace;

    font-size: 13px;

    letter-spacing: 0.2px;

}



@media (max-width: 768px) {

    .license-badge {

        padding: 6px 12px;

        font-size: 12px;

        height: 38px;

    }

    .license-badge .license-icon {

        font-size: 12px;

    }

    .license-badge .license-time {

        font-size: 12px;

    }

}



/* =============================================

   Theme Toggle Button

   ============================================= */



/* The toggle button container */

.theme-toggle-btn {

    position: relative;

    display: inline-block; /* Inline-block isolates absolute children from flexbox centering bugs */

    width: 64px;

    height: 34px;

    border-radius: 34px;

    border: 1.5px solid var(--border-color);

    background: rgba(255, 255, 255, 0.04);

    cursor: pointer;

    padding: 0;

    margin: 0;

    overflow: hidden;

    flex-shrink: 0;

    box-sizing: border-box;

    appearance: none;

    -webkit-appearance: none;

    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease !important;

}



.theme-toggle-btn:hover {

    border-color: var(--tiktok-pink);

    box-shadow: 0 0 12px rgba(255, 0, 80, 0.2);

}



/* The sliding thumb (circle) */

.theme-toggle-thumb {

    position: absolute;

    top: 4.5px;

    left: 4.5px;

    width: 22px;

    height: 22px;

    border-radius: 50%;

    background: var(--primary-gradient);

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);

    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

    z-index: 2;

    pointer-events: none;

}



/* Icons inside the toggle track */

.theme-toggle-icons {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 9px;

    pointer-events: none;

    z-index: 1;

    box-sizing: border-box;

}



.theme-toggle-icons .icon-moon,

.theme-toggle-icons .icon-sun {

    width: 14px;

    height: 14px;

    opacity: 0.6;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    transition: opacity 0.3s ease, color 0.3s ease !important;

}



/* Custom icon colors */

.theme-toggle-icons .icon-moon {

    color: #e2e8f0; /* Silver Moon */

}



.theme-toggle-icons .icon-sun {

    color: #ffaa00; /* Warm Gold Sun */

}



/* Dark mode state (default) — thumb on the LEFT (moon side) */

body:not(.light-mode) .theme-toggle-thumb {

    left: 4.5px;

}



body:not(.light-mode) .theme-toggle-icons .icon-moon {

    opacity: 0; /* moon is under thumb */

}



body:not(.light-mode) .theme-toggle-icons .icon-sun {

    opacity: 0.8;

}



/* Light mode state — thumb on the RIGHT (sun side) */

.light-mode .theme-toggle-thumb {

    left: 34.5px;

}



.light-mode .theme-toggle-icons .icon-sun {

    opacity: 0; /* sun is under thumb */

}



.light-mode .theme-toggle-icons .icon-moon {

    opacity: 0.8;

    color: #f1c40f; /* Warm golden moon in light mode */

}



.light-mode .theme-toggle-btn {

    background: rgba(255, 200, 80, 0.08);

    border-color: rgba(255, 180, 0, 0.3);

}



.light-mode .theme-toggle-btn:hover {

    border-color: rgba(255, 140, 0, 0.5);

    box-shadow: 0 0 12px rgba(255, 180, 0, 0.2);

}



/* Light mode adjustments for scrollbar */

.light-mode ::-webkit-scrollbar-track {

    background: #e4e7ec;

}



.light-mode ::-webkit-scrollbar-thumb {

    background: rgba(0, 0, 0, 0.15);

}



.light-mode ::-webkit-scrollbar-thumb:hover {

    background: rgba(0, 0, 0, 0.3);

}



/* Light mode — input styling */

.light-mode .input-card input {

    color: var(--text-primary);

}



.light-mode .input-card input::placeholder {

    color: var(--text-muted);

}



.light-mode .form-control {

    color: var(--text-primary);

    background: rgba(0, 0, 0, 0.03);

}



.light-mode .form-control:focus {

    background: rgba(0, 0, 0, 0.05);

}



/* Light mode — api mode selector */

.light-mode .api-mode-selector {

    background: rgba(0, 0, 0, 0.03);

}



.light-mode .api-mode-option {

    color: var(--text-secondary);

}



.light-mode .api-mode-option.active {

    background: rgba(0, 0, 0, 0.06);

    color: var(--text-primary);

    border: 1px solid rgba(0, 0, 0, 0.08);

}



/* Light mode — history empty */

.light-mode .history-empty {

    background: rgba(0, 0, 0, 0.02);

}



/* Light mode — spinner tones */

.light-mode .spinner {

    border-color: rgba(255, 0, 80, 0.12);

    border-top-color: var(--tiktok-pink);

    border-bottom-color: var(--tiktok-cyan);

}



/* Light mode — activation card */

.light-mode .activation-card {

    background: rgba(255, 255, 255, 0.92);

    box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 0 30px rgba(255, 0, 80, 0.1);

}



.light-mode .activation-input {

    background: rgba(0, 0, 0, 0.03);

    color: var(--text-primary);

    border-color: var(--border-color);

}



.light-mode .activation-input:focus {

    background: rgba(0, 0, 0, 0.05);

}



/* Light mode — history creator badge */

.light-mode .history-creator-badge {

    background: rgba(255, 255, 255, 0.75);

    color: #18181b;

}



/* Light mode — profile card background */

.light-mode .profile-video-card {

    background: rgba(255, 255, 255, 0.6);

}



/* Light mode — batch actions bar */

.light-mode .batch-actions-bar {

    background: rgba(255, 255, 255, 0.5);

}



/* Light mode — logo icon */

.light-mode .logo-icon {

    background: #ffffff;

    border-color: rgba(0, 0, 0, 0.1);

}



/* Light mode — guide card body text */

.light-mode .guide-card-body li strong {

    color: var(--text-primary);

}



/* Light mode — play btn circle */

.light-mode .play-btn-circle {

    color: #ffffff;

    background: #18181b;

}



/* Light mode — translation box */

.light-mode .translation-box {

    background: rgba(0, 0, 0, 0.03);

    border-color: rgba(0, 0, 0, 0.1);

}



/* Light mode — translated text */

.light-mode #translatedText {

    color: #3f3f46;

}



/* Disable transition on initial page load to prevent flash */

.no-theme-transition,

.no-theme-transition * {

    transition: none !important;

}





/* =============================================

   Batch Download — Feature Styles

   ============================================= */



.btn-batch-mode {

    padding: 16px 18px;

    border-radius: 18px;

    border: 1.5px solid var(--border-color);

    background: rgba(255, 255, 255, 0.03);

    color: var(--text-secondary);

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 8px;

    transition: all 0.3s ease;

    white-space: nowrap;

    flex-shrink: 0;

}

.btn-batch-mode:hover {

    border-color: var(--tiktok-cyan);

    color: var(--tiktok-cyan);

    background: rgba(0, 242, 254, 0.05);

    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);

}

.btn-batch-mode.active {

    border-color: var(--tiktok-cyan);

    background: rgba(0, 242, 254, 0.1);

    color: var(--tiktok-cyan);

    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);

}

.batch-textarea-wrapper {

    display: none;

    width: 100%;

    max-width: 1200px;

    background: var(--card-bg);

    border: 1px solid rgba(0, 242, 254, 0.2);

    border-radius: 24px;

    padding: 20px;

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    box-shadow: var(--shadow-md), 0 0 20px rgba(0, 242, 254, 0.05);

    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

}

.batch-textarea-wrapper.visible {

    display: flex;

    flex-direction: column;

    gap: 14px;

}

.batch-textarea-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 8px;

}

.batch-textarea-label {

    font-family: var(--font-heading);

    font-size: 14px;

    font-weight: 700;

    color: var(--tiktok-cyan);

    display: flex;

    align-items: center;

    gap: 8px;

}

.batch-count-badge {

    background: rgba(0, 242, 254, 0.1);

    border: 1px solid rgba(0, 242, 254, 0.25);

    color: var(--tiktok-cyan);

    font-size: 12px;

    font-weight: 700;

    padding: 3px 10px;

    border-radius: 20px;

    min-width: 24px;

    text-align: center;

}

.batch-textarea {

    width: 100%;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid var(--border-color);

    border-radius: 14px;

    padding: 14px 16px;

    color: var(--text-primary);

    font-size: 14px;

    font-family: var(--font-body);

    line-height: 1.7;

    resize: vertical;

    min-height: 130px;

    max-height: 260px;

    transition: border-color 0.3s ease, box-shadow 0.3s ease;

}

.batch-textarea:focus {

    border-color: var(--tiktok-cyan);

    background: rgba(0, 242, 254, 0.02);

    outline: none;

    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.08);

}

.batch-textarea::placeholder { color: var(--text-muted); font-size: 13px; }

.batch-textarea-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 10px;

}

.batch-textarea-hint { font-size: 12px; color: var(--text-muted); }

.light-mode .batch-textarea { background: rgba(0,0,0,0.03); color: var(--text-primary); }

.light-mode .batch-textarea:focus { background: rgba(0,242,254,0.02); }



.batch-queue-panel {

    display: none;

    width: 100%;

    max-width: 1200px;

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    border-radius: 24px;

    overflow: hidden;

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    box-shadow: var(--shadow-lg);

    animation: slideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);

}

.batch-queue-panel.visible { display: block; }

.batch-queue-header {

    padding: 20px 24px 16px;

    border-bottom: 1px solid var(--border-color);

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 12px;

}

.batch-queue-title {

    font-family: var(--font-heading);

    font-size: 18px;

    font-weight: 700;

    display: flex;

    align-items: center;

    gap: 10px;

}

.batch-queue-stats { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 600; }

.batch-stat-done { color: #10b981; }

.batch-stat-error { color: #ef4444; }

.batch-stat-pending { color: var(--text-muted); }

.batch-progress-bar-wrap { padding: 12px 24px 16px; border-bottom: 1px solid var(--border-color); }

.batch-progress-bar-track {

    width: 100%; height: 6px;

    background: rgba(255, 255, 255, 0.06);

    border-radius: 6px; overflow: hidden;

}

.batch-progress-bar-fill {

    height: 100%;

    background: var(--primary-gradient);

    border-radius: 6px;

    width: 0%;

    transition: width 0.5s ease;

}

.batch-progress-label {

    font-size: 12px; color: var(--text-secondary);

    margin-top: 6px; display: flex;

    justify-content: space-between; font-weight: 600;

}

.batch-queue-list { max-height: 460px; overflow-y: auto; padding: 4px 0; }

.batch-queue-item {

    display: flex; align-items: center; gap: 14px;

    padding: 14px 24px;

    border-bottom: 1px solid rgba(255,255,255,0.04);

    transition: background 0.2s ease;

}

.batch-queue-item:last-child { border-bottom: none; }

.batch-queue-item:hover { background: rgba(255,255,255,0.02); }

.batch-item-num { font-size: 12px; font-weight: 700; color: var(--text-muted); min-width: 22px; text-align: center; flex-shrink: 0; }

.batch-item-cover {

    width: 52px; height: 52px; border-radius: 10px;

    object-fit: cover; background: rgba(255,255,255,0.05);

    flex-shrink: 0; border: 1px solid var(--border-color);

}

.batch-item-cover-placeholder {

    width: 52px; height: 52px; border-radius: 10px;

    background: rgba(255,255,255,0.04);

    border: 1px solid var(--border-color);

    display: flex; align-items: center; justify-content: center;

    font-size: 20px; flex-shrink: 0;

}

.batch-item-info { flex: 1; min-width: 0; }

.batch-item-url { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; font-family: monospace; }

.batch-item-title { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.batch-item-status { flex-shrink: 0; }

.batch-item-badge {

    padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 700;

    display: flex; align-items: center; gap: 5px; white-space: nowrap;

}

.badge-queued { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border-color); }

.badge-processing { background: rgba(255,180,0,0.1); color: #fbbf24; border: 1px solid rgba(255,180,0,0.2); animation: pulse 1.2s infinite; }

.badge-done { background: rgba(16,185,129,0.1); color: #10b981; border: 1px solid rgba(16,185,129,0.2); }

.badge-error { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

.batch-item-dl-btns { display: flex; gap: 6px; flex-shrink: 0; }

.btn-batch-item-dl {

    padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 700;

    cursor: pointer; white-space: nowrap; transition: all 0.2s ease;

    display: flex; align-items: center; gap: 4px; text-decoration: none;

}

.btn-batch-item-video { background: var(--primary-gradient); border: none; color: #fff; }

.btn-batch-item-video:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-batch-item-audio { background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); }

.btn-batch-item-audio:hover { border-color: var(--tiktok-cyan); color: var(--tiktok-cyan); }

.btn-close-queue {

    padding: 8px 16px; border-radius: 10px;

    border: 1px solid var(--border-color); background: transparent;

    color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer;

    transition: all 0.2s ease;

}

.btn-close-queue:hover { border-color: var(--tiktok-pink); color: var(--tiktok-pink); }



.btn-history-select-mode {

    font-size: 13px; font-weight: 700; color: var(--tiktok-cyan); cursor: pointer;

    background: rgba(0,242,254,0.05); border: 1px solid rgba(0,242,254,0.2);

    border-radius: 10px; padding: 6px 14px;

    display: flex; align-items: center; gap: 6px; transition: all 0.2s ease;

}

.btn-history-select-mode:hover { background: rgba(0,242,254,0.1); border-color: var(--tiktok-cyan); }

.btn-history-select-mode.active {

    background: rgba(0,242,254,0.12); border-color: var(--tiktok-cyan);

    box-shadow: 0 0 12px rgba(0,242,254,0.15);

}

.history-batch-bar {

    display: none; justify-content: space-between; align-items: center;

    background: rgba(0,242,254,0.04); border: 1px solid rgba(0,242,254,0.15);

    padding: 14px 20px; border-radius: 16px; margin-bottom: 20px;

    animation: slideUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

    flex-wrap: wrap; gap: 12px;

}

.history-batch-bar.visible { display: flex; }

.history-batch-select-all-row { display: flex; align-items: center; gap: 10px; }

.history-batch-count { font-size: 14px; font-weight: 700; color: var(--tiktok-cyan); }

.history-batch-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.history-card { position: relative; }

.history-select-overlay { position: absolute; top: 10px; left: 10px; z-index: 10; display: none; }

.history-select-mode .history-select-overlay { display: block; }

.history-checkbox {

    width: 22px; height: 22px; border-radius: 50%;

    border: 2px solid rgba(255,255,255,0.5); background: rgba(9,9,11,0.7);

    cursor: pointer; appearance: none; -webkit-appearance: none;

    display: flex; align-items: center; justify-content: center;

    transition: all 0.2s cubic-bezier(0.175,0.885,0.32,1.275);

    box-shadow: 0 2px 8px rgba(0,0,0,0.5);

}

.history-checkbox:hover { border-color: var(--tiktok-cyan); transform: scale(1.1); }

.history-checkbox:checked { background: var(--tiktok-cyan); border-color: var(--tiktok-cyan); box-shadow: 0 0 12px rgba(0,242,254,0.4); }

.history-checkbox:checked::after { content: "✓"; color: #000; font-size: 12px; font-weight: 900; }

.history-card.history-selected { border-color: var(--tiktok-cyan); box-shadow: 0 0 16px rgba(0,242,254,0.15), var(--shadow-md); }

.light-mode .batch-queue-item:hover { background: rgba(0,0,0,0.02); }

.light-mode .batch-progress-bar-track { background: rgba(0,0,0,0.06); }

.light-mode .batch-item-cover-placeholder { background: rgba(0,0,0,0.04); }

.light-mode .history-checkbox { background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.35); }

.light-mode .history-checkbox:checked { background: var(--tiktok-cyan); border-color: var(--tiktok-cyan); }

.batch-spin {

    width: 12px; height: 12px;

    border: 2px solid rgba(251,191,36,0.2); border-top-color: #fbbf24;

    border-radius: 50%; animation: spin 0.8s linear infinite;

    display: inline-block; flex-shrink: 0;

}

@media (max-width: 768px) {

    .batch-queue-item { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }

    .batch-item-dl-btns { width: 100%; justify-content: flex-end; }

    .batch-queue-header { padding: 16px; }

    .batch-queue-list { max-height: 360px; }

    .history-batch-bar { flex-direction: column; align-items: flex-start; }

}



/* Batch item — Translate button */

.btn-batch-item-translate {

    background: rgba(0, 242, 254, 0.1);

    border: 1px solid rgba(0, 242, 254, 0.3);

    color: var(--tiktok-cyan);

    font-size: 11px;

    font-weight: 700;

    padding: 6px 12px;

    border-radius: 8px;

    cursor: pointer;

    transition: all 0.2s ease;

    white-space: nowrap;

    display: flex;

    align-items: center;

    gap: 4px;

}

.btn-batch-item-translate:hover {

    background: rgba(0, 242, 254, 0.18);

    border-color: var(--tiktok-cyan);

    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);

    transform: translateY(-1px);

}

.btn-batch-item-translate:disabled {

    opacity: 0.6;

    cursor: not-allowed;

    transform: none;

}

.light-mode .btn-batch-item-translate {

    background: rgba(0, 200, 220, 0.08);

    color: #0099aa;

    border-color: rgba(0, 200, 220, 0.3);

}



/* ==========================================

   Multi-Language Dropdown Selector Styling

   ========================================== */

.lang-dropdown {

    position: relative;

    display: inline-block;

}



.lang-dropdown-btn {

    font-size: 13px;

    font-weight: 700;

    width: auto !important;

    min-width: 85px;

    padding: 0 12px !important;

    display: flex;

    align-items: center;

    gap: 6px;

    cursor: pointer;

}



.lang-dropdown-content {

    display: none;

    position: absolute;

    right: 0;

    top: 50px;

    background: var(--modal-bg);

    border: 1px solid var(--border-color);

    border-radius: 16px;

    box-shadow: var(--shadow-lg);

    z-index: 10000;

    min-width: 340px;

    padding: 12px;

    grid-template-columns: repeat(2, 1fr);

    gap: 4px;

    max-height: 450px;

    overflow-y: auto;

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

}



.lang-dropdown-content.show {

    display: grid;

}



.lang-dropdown-content a {

    color: var(--text-primary);

    padding: 8px 12px;

    font-size: 13px;

    font-weight: 500;

    border-radius: 8px;

    display: flex;

    align-items: center;

    gap: 8px;

    transition: all 0.2s ease;

}



.lang-dropdown-content a:hover {

    background: rgba(255, 255, 255, 0.06);

    color: var(--tiktok-cyan);

}



.lang-dropdown-content a.active {

    background: rgba(0, 242, 254, 0.1);

    color: var(--tiktok-cyan);

    font-weight: 700;

}



.light-mode .lang-dropdown-content a:hover {

    background: rgba(0, 0, 0, 0.04);

}



.light-mode .lang-dropdown-content a.active {

    background: rgba(0, 242, 254, 0.15);

    color: #0099aa;

}



/* Custom Scrollbar for Language Dropdown */

.lang-dropdown-content::-webkit-scrollbar {

    width: 6px;

}

.lang-dropdown-content::-webkit-scrollbar-track {

    background: transparent;

}

.lang-dropdown-content::-webkit-scrollbar-thumb {

    background: rgba(255, 255, 255, 0.1);

    border-radius: 3px;

}

.light-mode .lang-dropdown-content::-webkit-scrollbar-thumb {

    background: rgba(0, 0, 0, 0.1);

}



/* Sidebar Skyscraper Ads (Left and Right) */

.sidebar-ad-left, .sidebar-ad-right {

    position: fixed;

    top: 150px;

    width: 160px;

    height: 600px;

    z-index: 90;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    border-radius: 16px;

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    box-shadow: var(--shadow-sm);

    padding: 10px;

    overflow: hidden;

}



.sidebar-ad-left::before, .sidebar-ad-right::before {

    content: "Advertisement";

    display: block;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: var(--text-muted);

    margin-bottom: 8px;

    font-family: var(--font-heading);

    font-weight: 600;

}



.sidebar-ad-left {

    left: calc(50% - 600px - 180px); /* 1200px container width: half is 600px + 20px gap + 160px ad width */

}



.sidebar-ad-right {

    right: calc(50% - 600px - 180px);

}



/* Responsive sidebars: Hide if screen is not wide enough to fit them without overlapping */

@media (max-width: 1580px) {

    .sidebar-ad-left, .sidebar-ad-right {

        display: none !important;

    }

}



/* Content Pages (Terms, Privacy, Contact) */

.content-page {

    margin-top: 40px;

    margin-bottom: 60px;

}



.content-card {

    width: 100%;

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    border-radius: 24px;

    padding: 40px;

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    box-shadow: var(--shadow-lg);

    color: var(--text-primary);

}



.content-card h1 {

    font-family: var(--font-heading);

    font-size: 32px;

    font-weight: 800;

    margin-bottom: 15px;

    background: var(--primary-gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}



.content-card .last-updated {

    font-size: 13px;

    color: var(--text-muted);

    margin-bottom: 30px;

    border-bottom: 1px solid var(--border-color);

    padding-bottom: 15px;

}



.content-card h2 {

    font-family: var(--font-heading);

    font-size: 20px;

    font-weight: 700;

    margin-top: 30px;

    margin-bottom: 15px;

    color: var(--tiktok-cyan);

}



.light-mode .content-card h2 {

    color: #0099aa;

}



.content-card p {

    font-size: 14px;

    line-height: 1.7;

    color: var(--text-secondary);

    margin-bottom: 15px;

}



.light-mode .content-card p {

    color: #3f3f46;

}



.content-card ul {

    margin-bottom: 20px;

    padding-left: 20px;

    list-style-type: disc;

}



.content-card li {

    font-size: 14px;

    line-height: 1.7;

    color: var(--text-secondary);

    margin-bottom: 8px;

}



.light-mode .content-card li {

    color: #3f3f46;

}



.content-card a {

    color: var(--tiktok-cyan);

    text-decoration: none;

    font-weight: 600;

    transition: all 0.2s ease;

}



.light-mode .content-card a {

    color: #0099aa;

}



.content-card a:hover {

    color: var(--tiktok-pink);

    text-decoration: underline;

}



@media (max-width: 768px) {

    .content-card {

        padding: 24px;

        border-radius: 16px;

    }

    .content-card h1 {

        font-size: 24px;

    }

    .content-card h2 {

        font-size: 18px;

    }

}



/* Discover More Section */

.discover-section {

    width: 100%;

    max-width: 1200px;

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    border-radius: 20px;

    overflow: hidden;

    margin-top: 30px;

    margin-bottom: 20px;

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    box-shadow: var(--shadow-sm);

}



.discover-header {

    background: rgba(255, 255, 255, 0.02);

    border-bottom: 1px solid var(--border-color);

    padding: 14px 20px;

    font-size: 14px;

    font-weight: 700;

    color: var(--text-secondary);

    font-family: var(--font-heading);

    letter-spacing: 0.5px;

    text-transform: uppercase;

}



.discover-links {

    display: flex;

    flex-direction: column;

}



.discover-link-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 16px 20px;

    border-bottom: 1px solid var(--border-color);

    text-decoration: none;

    color: var(--text-primary);

    font-size: 14px;

    font-weight: 600;

    transition: all 0.2s ease;

}



.discover-link-item:last-child {

    border-bottom: none;

}



.discover-link-item:hover {

    background: rgba(255, 255, 255, 0.03);

    color: var(--tiktok-cyan);

}



.discover-arrow {

    width: 16px;

    height: 16px;

    color: var(--text-muted);

    transition: transform 0.2s ease, color 0.2s ease;

}



.discover-link-item:hover .discover-arrow {

    transform: translateX(4px);

    color: var(--tiktok-cyan);

}



.light-mode .discover-header {

    background: rgba(0, 0, 0, 0.01);

}



.light-mode .discover-link-item:hover {

    background: rgba(0, 0, 0, 0.02);

    color: #0099aa;

}



.light-mode .discover-link-item:hover .discover-arrow {

    color: #0099aa;

}



/* Disclaimer Note Section */

.disclaimer-note-container {

    width: 100%;

    max-width: 1200px;

    margin-top: 15px;

    margin-bottom: 25px;

    padding: 0 10px;

}



.disclaimer-note {

    border-left: 3px solid var(--text-muted);

    padding-left: 15px;

    text-align: left;

    color: var(--text-secondary);

    font-size: 13.5px;

    line-height: 1.6;

    font-family: var(--font-body);

}



.disclaimer-note strong {

    color: var(--text-primary);

    font-weight: 700;

}



/* Badge Styling */

.disclaimer-badge {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    background: rgba(0, 242, 254, 0.08);

    border: 1px solid rgba(0, 242, 254, 0.2);

    color: var(--tiktok-cyan);

    font-size: 11px;

    font-weight: 600;

    padding: 2px 10px;

    border-radius: 20px;

    margin-left: 6px;

    vertical-align: middle;

    transition: all 0.2s ease;

}



.light-mode .disclaimer-badge {

    background: rgba(0, 153, 170, 0.08);

    border-color: rgba(0, 153, 170, 0.2);

    color: #008899;

}



.disclaimer-badge:hover {

    background: rgba(0, 242, 254, 0.15);

    border-color: rgba(0, 242, 254, 0.35);

}



.light-mode .disclaimer-badge:hover {

    background: rgba(0, 153, 170, 0.15);

    border-color: rgba(0, 153, 170, 0.35);

}



.disclaimer-badge-icon {

    width: 12px;

    height: 12px;

    stroke: currentColor;

    stroke-width: 2.5px;

    fill: none;

}



.terms-accept-notice {

    width: 100%;

    max-width: 1200px;

    margin-top: 10px;

    margin-bottom: 20px;

    font-size: 12px;

    color: var(--text-muted);

    text-align: left;

    padding-left: 10px;

    font-family: var(--font-body);

}



.terms-accept-notice a {

    color: var(--tiktok-cyan);

    text-decoration: underline;

    transition: color 0.2s ease;

}



.light-mode .terms-accept-notice a {

    color: #008899;

}



.terms-accept-notice a:hover {

    color: var(--tiktok-pink);

}



.batch-zip-action-wrap {

    width: 100%;

}



#batchZipBtn {

    background: linear-gradient(135deg, var(--tiktok-cyan), #00d2ff);

    color: #000;

    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);

    border: none;

    transition: all 0.3s ease;

}



#batchZipBtn:hover {

    background: linear-gradient(135deg, var(--tiktok-pink), #ff007f);

    color: #fff;

    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);

    transform: translateY(-2px);

}



#batchZipBtn:disabled {

    background: var(--border-color);

    color: var(--text-muted);

    box-shadow: none;

    transform: none;

    cursor: not-allowed;

}



.light-mode #batchZipBtn {

    background: linear-gradient(135deg, #008899, #00b4cc);

    color: #fff;

    box-shadow: 0 4px 12px rgba(0, 136, 153, 0.2);

}



.light-mode #batchZipBtn:hover {

    background: linear-gradient(135deg, #ff007f, #ff409f);

    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.3);

}



/* Prevent Cumulative Layout Shift (CLS) for Ad Slots */

.ad-slot {

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 20px auto;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.02);

    border: 1px dashed rgba(255, 255, 255, 0.1);

    border-radius: 16px;

    position: relative;

}



/* Light mode adjustments */

.light-mode .ad-slot {

    background: rgba(0, 0, 0, 0.01);

    border-color: rgba(0, 0, 0, 0.05);

}



.ad-slot::after {

    content: "Advertisement";

    position: absolute;

    top: 5px;

    right: 10px;

    font-size: 8px;

    color: var(--text-muted);

    font-family: var(--font-body);

    pointer-events: none;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    opacity: 0.5;

}



/* Specific Sizes to reserve layout dimensions */

.ad-banner-top, .ad-banner-bottom {

    width: 100%;

    max-width: 728px;

    height: 90px;

    min-height: 90px;

}



.ad-native-middle {

    width: 100%;

    max-width: 728px;

    height: 250px;

    min-height: 250px;

}



/* Responsive adjustments for mobile viewports */

@media (max-width: 768px) {

    .ad-banner-top, .ad-banner-bottom {

        max-width: 320px;

        height: 50px;

        min-height: 50px;

    }

    .ad-native-middle {

        max-width: 336px;

        height: 280px;

        min-height: 250px;

    }

}



/* Premium Navigation Links Styling (Home, Blog, About, Contact) */

.nav-links {

    display: flex;

    align-items: center;

    gap: 12px;

}



.nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 15px;
    font-size: 13.5px;
    font-weight: 700;
    height: 38px;
    border-radius: 20px;
    text-decoration: none;
    font-family: var(--font-heading);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}



.nav-item:hover {
    background: rgba(255, 0, 80, 0.08);
    border-color: rgba(255, 0, 80, 0.35);
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 12px rgba(255, 0, 80, 0.15);
}



.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(0, 242, 254, 0.05));
    border: 1px solid rgba(0, 242, 254, 0.45);
    color: var(--tiktok-cyan);
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.2);
    font-weight: 800;
}



.nav-item.active:hover {

    background: rgba(0, 250, 240, 0.1);

    border-color: rgba(0, 250, 240, 0.4);

    transform: translateY(-1px);

}



/* Light mode support */

.light-mode .nav-item {

    background: rgba(0, 0, 0, 0.03);

    border: 1px solid rgba(0, 0, 0, 0.08);

    color: var(--text-secondary);

}



.light-mode .nav-item:hover {

    background: rgba(0, 0, 0, 0.06);

    border-color: rgba(0, 0, 0, 0.15);

    color: var(--text-primary);

}



.light-mode .nav-item.active {

    background: rgba(0, 242, 254, 0.05);

    border-color: rgba(0, 242, 254, 0.3);

    color: #00b5bc; /* A slightly darker teal/cyan for high contrast readability in light mode */

}



.light-mode .nav-item.active:hover {

    background: rgba(0, 242, 254, 0.1);

    border-color: rgba(0, 242, 254, 0.45);

}



/* Premium Highlighted Link Button */

.nav-item.premium-btn {

    background: linear-gradient(135deg, rgba(255, 0, 80, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);

    border: 1px solid rgba(0, 242, 254, 0.4);

    color: var(--tiktok-cyan) !important;

    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);

    font-weight: 800;

}

.nav-item.premium-btn:hover {

    background: linear-gradient(135deg, rgba(255, 0, 80, 0.3) 0%, rgba(0, 242, 254, 0.3) 100%);

    border-color: var(--tiktok-pink);

    box-shadow: 0 0 15px rgba(255, 0, 80, 0.4);

    transform: translateY(-1px);

    color: #fff !important;

}

.light-mode .nav-item.premium-btn {

    background: linear-gradient(135deg, rgba(255, 0, 80, 0.08) 0%, rgba(0, 242, 254, 0.08) 100%);

    border-color: rgba(0, 242, 254, 0.5);

    color: #0099aa !important;

}

.light-mode .nav-item.premium-btn:hover {

    background: linear-gradient(135deg, rgba(255, 0, 80, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);

    border-color: #ff0050;

    color: #ff0050 !important;

}



/* Responsive adjustment for mobile viewports */

@media (max-width: 768px) {

    .nav-links {

        gap: 6px;

        flex-wrap: wrap;

        justify-content: center;

    }

    .nav-item {

        padding: 6px 12px;

        font-size: 11px;

        height: 36px;

        border-radius: 8px;

        gap: 4px;

    }

}



/* Audio Trimmer & Ringtone Cutter component styles */

.trimmer-container {

    max-width: 800px;

    width: 100%;

    margin: 20px auto 40px auto;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 24px;

    padding: 30px;

    box-sizing: border-box;

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

}



.trimmer-dropzone {

    border: 2px dashed rgba(0, 242, 254, 0.25);

    background: rgba(0, 242, 254, 0.02);

    border-radius: 16px;

    padding: 40px 20px;

    text-align: center;

    cursor: pointer;

    transition: all 0.3s ease;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

}



.trimmer-dropzone:hover, .trimmer-dropzone.dragover {

    border-color: var(--tiktok-cyan);

    background: rgba(0, 242, 254, 0.06);

    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);

}



.trimmer-dropzone svg {

    color: var(--tiktok-cyan);

    stroke-width: 2;

}



.trimmer-dropzone-title {

    font-size: 16px;

    font-weight: 700;

    color: var(--text-primary);

}



.trimmer-dropzone-subtitle {

    font-size: 13px;

    color: var(--text-muted);

}



.trimmer-divider {

    display: flex;

    align-items: center;

    text-align: center;

    color: var(--text-muted);

    font-size: 12px;

    margin: 20px 0;

    text-transform: uppercase;

    letter-spacing: 1.5px;

}



.trimmer-divider::before, .trimmer-divider::after {

    content: '';

    flex: 1;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}



.trimmer-divider:not(:empty)::before {

    margin-right: 15px;

}



.trimmer-divider:not(:empty)::after {

    margin-left: 15px;

}



.trimmer-url-input-wrapper {

    display: flex;

    gap: 12px;

    width: 100%;

}



.trimmer-url-input {

    flex: 1;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 12px;

    padding: 12px 16px;

    font-size: 14px;

    color: var(--text-primary);

    font-family: var(--font-body);

    outline: none;

    transition: all 0.2s ease;

}



.trimmer-url-input:focus {

    border-color: var(--tiktok-cyan);

    background: rgba(0, 242, 254, 0.02);

    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);

}



/* Waveform Visualizer Styles */

.waveform-wrapper {

    margin-top: 25px;

    background: rgba(0, 0, 0, 0.2);

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 16px;

    padding: 20px;

    position: relative;

    overflow: hidden;

}



.waveform-canvas-container {

    position: relative;

    width: 100%;

    height: 120px;

}



.waveform-canvas {

    width: 100%;

    height: 100%;

    display: block;

}



/* Custom dual sliders / positioning styles */

.slider-control-group {

    margin-top: 25px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

}



.slider-wrapper {

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.slider-label-row {

    display: flex;

    justify-content: space-between;

    font-size: 12px;

    font-weight: 700;

    color: var(--text-muted);

}



.slider-value {

    color: var(--tiktok-cyan);

}



.trimmer-range-input {

    -webkit-appearance: none;

    appearance: none;

    width: 100%;

    height: 6px;

    background: rgba(255, 255, 255, 0.08);

    border-radius: 3px;

    outline: none;

    transition: background 0.3s;

}



.trimmer-range-input::-webkit-slider-thumb {

    -webkit-appearance: none;

    appearance: none;

    width: 18px;

    height: 18px;

    border-radius: 50%;

    background: var(--tiktok-cyan);

    cursor: pointer;

    box-shadow: 0 0 8px rgba(0, 242, 254, 0.5);

    transition: transform 0.1s ease;

}



.trimmer-range-input::-webkit-slider-thumb:hover {

    transform: scale(1.2);

}



.trimmer-range-input.end-slider::-webkit-slider-thumb {

    background: var(--tiktok-pink);

    box-shadow: 0 0 8px rgba(255, 0, 80, 0.5);

}



.trimmer-range-input.end-slider::-webkit-slider-thumb:hover {

    transform: scale(1.2);

}



.trim-duration-badge {

    margin-top: 15px;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 8px;

    padding: 8px 12px;

    display: inline-flex;

    gap: 6px;

    font-size: 13px;

    font-weight: 700;

    align-items: center;

}



.trim-duration-badge span {

    color: var(--tiktok-cyan);

}



/* Control buttons group */

.trimmer-action-group {

    margin-top: 30px;

    display: flex;

    gap: 16px;

    justify-content: center;

}



/* Light mode support for trimmer */

.light-mode .trimmer-container {

    background: rgba(0, 0, 0, 0.01);

    border-color: rgba(0, 0, 0, 0.06);

}



.light-mode .trimmer-dropzone {

    border-color: rgba(0, 181, 188, 0.25);

    background: rgba(0, 181, 188, 0.02);

}



.light-mode .trimmer-dropzone:hover {

    background: rgba(0, 181, 188, 0.05);

}



.light-mode .trimmer-url-input {

    background: rgba(0, 0, 0, 0.02);

    border-color: rgba(0, 0, 0, 0.08);

}



.light-mode .waveform-wrapper {

    background: rgba(0, 0, 0, 0.03);

    border-color: rgba(0, 0, 0, 0.05);

}



.light-mode .trimmer-divider::before,

.light-mode .trimmer-divider::after {

    border-bottom-color: rgba(0, 0, 0, 0.08);

}



.light-mode .trim-duration-badge {

    background: rgba(0, 0, 0, 0.02);

    border-color: rgba(0, 0, 0, 0.05);

}



/* Trimmer loading overlay styles */

.trimmer-loading-overlay {

    position: absolute;

    inset: 0;

    background: rgba(9, 9, 11, 0.85);

    backdrop-filter: blur(8px);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 16px;

    z-index: 10;

    border-radius: 16px;

    transition: opacity 0.3s ease;

}



.light-mode .trimmer-loading-overlay {

    background: rgba(255, 255, 255, 0.85);

}



.trimmer-spinner {

    width: 40px;

    height: 40px;

    border: 4px solid rgba(255, 255, 255, 0.1);

    border-top: 4px solid var(--tiktok-cyan);

    border-radius: 50%;

    animation: spin 1s linear infinite;

}



.light-mode .trimmer-spinner {

    border-color: rgba(0, 0, 0, 0.06);

    border-top-color: #00b5bc;

}



.trimmer-loading-text {

    font-size: 14px;

    font-weight: 700;

    color: var(--text-primary);

}



/* Responsive trimmer columns */

@media (max-width: 576px) {

    .trimmer-container {

        padding: 20px 15px;

    }

    .trimmer-url-input-wrapper {

        flex-direction: column;

    }

    .slider-control-group {

        grid-template-columns: 1fr;

        gap: 15px;

    }

    .trimmer-action-group {

        flex-direction: column;

        width: 100%;

    }

    .trimmer-action-group button,

    .trimmer-action-group a {

        width: 100%;

        justify-content: center;

    }

}



/* Premium Secondary Feature Navigation Tabs Bar */

.feature-nav-bar {

    display: flex;

    justify-content: center;

    gap: 12px;

    margin: 24px auto;

    width: 100%;

    max-width: 520px;

    padding: 6px;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 18px;

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

    box-sizing: border-box;

}



/* When feature-nav-bar is inside .container (index.php), prevent container

   padding from making it narrower — align-self + auto margin centres it */

.container .feature-nav-bar {

    align-self: center;

    width: 100%;

    max-width: 520px;

}



.feature-nav-item {

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 10px 16px;

    font-size: 13.5px;

    font-weight: 700;

    color: var(--text-secondary);

    text-decoration: none;

    border-radius: 14px;

    border: 1px solid transparent;

    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: var(--font-heading);

    white-space: nowrap;

    box-sizing: border-box;

}



.feature-nav-item:hover {

    color: var(--text-primary);

    background: rgba(255, 255, 255, 0.04);

    border-color: rgba(255, 255, 255, 0.08);

    transform: translateY(-1px);

}



.feature-nav-item.active {

    background: linear-gradient(135deg, rgba(255, 0, 80, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);

    border: 1px solid rgba(0, 250, 240, 0.25);

    color: var(--tiktok-cyan);

    box-shadow: 0 4px 15px rgba(0, 250, 240, 0.12);

}



.light-mode .feature-nav-bar {

    background: rgba(0, 0, 0, 0.02);

    border-color: rgba(0, 0, 0, 0.06);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

}



.light-mode .feature-nav-item {

    color: var(--text-secondary);

}



.light-mode .feature-nav-item:hover {

    color: var(--text-primary);

    background: rgba(0, 0, 0, 0.03);

    border-color: rgba(0, 0, 0, 0.06);

}



.light-mode .feature-nav-item.active {

    background: linear-gradient(135deg, rgba(255, 0, 80, 0.06) 0%, rgba(0, 242, 254, 0.06) 100%);

    border-color: rgba(0, 242, 254, 0.4);

    color: #009ea8;

}



@media (max-width: 576px) {

    .feature-nav-bar {

        gap: 6px;

        padding: 4px;

        margin: 16px auto;

        border-radius: 14px;

        max-width: 90%;

    }

    .feature-nav-item {

        padding: 8px 10px;

        font-size: 11.5px;

        gap: 4px;

        border-radius: 10px;

    }

}









/* API Guide Link Button in Settings Modal */

.btn-guide-link {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 10px 16px;

    font-size: 13px;

    font-weight: 700;

    color: var(--tiktok-cyan);

    text-decoration: none;

    background: rgba(0, 250, 240, 0.06);

    border: 1px solid rgba(0, 250, 240, 0.2);

    border-radius: 10px;

    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    cursor: pointer;

    font-family: var(--font-heading);

    box-sizing: border-box;

    width: 100%;

}



.btn-guide-link:hover {

    background: linear-gradient(135deg, rgba(255, 0, 80, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);

    border-color: rgba(0, 250, 240, 0.4);

    color: var(--text-primary);

    box-shadow: 0 4px 15px rgba(0, 250, 240, 0.15);

    transform: translateY(-1px);

}



/* API Guide Link Button in Settings Modal */

.btn-guide-link {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 10px 16px;

    font-size: 13px;

    font-weight: 700;

    color: var(--tiktok-cyan);

    text-decoration: none;

    background: rgba(0, 250, 240, 0.06);

    border: 1px solid rgba(0, 250, 240, 0.2);

    border-radius: 10px;

    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    cursor: pointer;

    font-family: var(--font-heading);

    box-sizing: border-box;

    width: 100%;

}



.btn-guide-link:hover {

    background: linear-gradient(135deg, rgba(255, 0, 80, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);

    border-color: rgba(0, 250, 240, 0.4);

    color: var(--text-primary);

    box-shadow: 0 4px 15px rgba(0, 250, 240, 0.15);

    transform: translateY(-1px);

}



.light-mode .btn-guide-link {

    color: #008f99;

    background: rgba(0, 242, 254, 0.05);

    border-color: rgba(0, 242, 254, 0.3);

}



.light-mode .btn-guide-link:hover {

    color: #007780;

    background: rgba(0, 242, 254, 0.1);

    border-color: rgba(0, 242, 254, 0.5);

    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.1);

}





/* Activate nav button for free users */

.btn-activate-nav {

    display: flex !important;

    align-items: center;

    gap: 6px;

    padding: 8px 18px !important;

    background: linear-gradient(135deg, rgba(255, 0, 80, 0.12) 0%, rgba(0, 242, 254, 0.12) 100%) !important;

    border: 1px solid rgba(255, 0, 80, 0.45) !important;

    border-radius: 9999px !important;

    color: var(--tiktok-pink) !important;

    font-size: 13px !important;

    font-weight: 700 !important;

    cursor: pointer;

    font-family: var(--font-heading);

    transition: all 0.2s ease !important;

    white-space: nowrap;

    outline: none !important;

    box-shadow: none !important;

}

.btn-activate-nav:hover {

    background: linear-gradient(135deg, rgba(255, 0, 80, 0.22) 0%, rgba(0, 242, 254, 0.22) 100%) !important;

    border-color: rgba(255, 0, 80, 0.7) !important;

    box-shadow: 0 0 12px rgba(255, 0, 80, 0.25) !important;

    transform: translateY(-1px) !important;

}



/* VIP Button visibility based on premium mode */

body.premium-mode #openActivateBtn {

    display: none !important;

}

body:not(.premium-mode) #openActivateBtn {

    display: flex !important;

}



/* ==========================================

   Home Landing Page Redesign

   ========================================== */



/* Container wrapper styling */

.home-page-container,

#homePage.home-page-container {

    width: 100% !important;

    max-width: 1200px !important;

    margin: 0 auto !important;

    padding: 40px 24px 80px 24px !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    gap: 80px !important;

    background: radial-gradient(circle at 50% 15%, rgba(0, 242, 254, 0.04) 0%, rgba(255, 0, 80, 0.04) 40%, transparent 70%) !important;

}



/* 1. Hero Section */

.home-hero {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    max-width: 850px;

    margin: 20px auto 0 auto;

    gap: 20px;

    position: relative;

}



.hero-badge {

    background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(255, 0, 80, 0.08) 100%);

    border: 1px solid rgba(255, 255, 255, 0.1);

    color: var(--tiktok-cyan);

    padding: 6px 16px;

    border-radius: 9999px;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 0.5px;

    font-family: var(--font-heading);

    box-shadow: var(--shadow-sm);

    display: inline-block;

    backdrop-filter: blur(4px);

    transition: all 0.3s ease;

}



.home-hero:hover .hero-badge {

    border-color: rgba(0, 242, 254, 0.3);

    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);

}



.home-hero h1 {

    font-size: 3.2rem;

    font-weight: 800;

    line-height: 1.2;

    background: linear-gradient(135deg, var(--tiktok-cyan), #ffffff, var(--tiktok-pink), #ffffff);

    background-size: 300% 300%;

    -webkit-background-clip: text;

    background-clip: text;

    -webkit-text-fill-color: transparent;

    animation: gradientShift 6s ease infinite;

    font-family: var(--font-heading);

}



.home-hero h1 span {

    display: block;

    font-size: 1.8rem;

    font-weight: 500;

    color: var(--text-secondary);

    margin-top: 10px;

    background: linear-gradient(135deg, #a1a1aa, #f4f4f5);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}



.home-hero p {

    font-size: 1.15rem;

    color: var(--text-secondary);

    max-width: 650px;

    line-height: 1.7;

    margin: 10px auto 15px auto;

    font-family: var(--font-body);

}



/* Call to Action Button */

.home-cta-btn {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 16px 36px !important;

    font-size: 16px !important;

    font-weight: 700 !important;

    border-radius: 50px !important;

    background: linear-gradient(135deg, var(--tiktok-cyan), var(--tiktok-pink)) !important;

    border: none !important;

    color: #ffffff !important;

    cursor: pointer;

    box-shadow: 0 4px 20px rgba(0, 250, 240, 0.25), 0 0 0 0px rgba(255, 0, 80, 0) !important;

    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;

    font-family: var(--font-heading);

}



.home-cta-btn:hover {

    transform: translateY(-2px) scale(1.02);

    box-shadow: 0 8px 30px rgba(0, 250, 240, 0.4), 0 0 20px rgba(255, 0, 80, 0.3) !important;

}



.home-cta-btn:active {

    transform: translateY(0) scale(0.98);

}



.home-cta-btn svg {

    transition: transform 0.3s ease;

}



.home-cta-btn:hover svg {

    transform: translateX(4px);

}



/* 2. Stats Grid */

.home-stats-section {

    width: 100%;

}



.stats-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;

    width: 100%;

    max-width: 900px;

    margin: 0 auto;

}



.stat-card {

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    padding: 26px 20px;

    border-radius: 24px;

    text-align: center;

    transition: all 0.3s ease;

    backdrop-filter: blur(10px);

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);

}



.stat-card:hover {

    border-color: var(--tiktok-cyan);

    transform: translateY(-4px);

    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.12), var(--shadow-md);

}



.stat-value {

    font-size: 2.4rem;

    font-weight: 800;

    background: linear-gradient(135deg, var(--tiktok-cyan), #ffffff);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    margin-bottom: 6px;

    font-family: var(--font-heading);

    text-shadow: 0 0 15px rgba(0, 242, 254, 0.35);

}



.stat-label {

    font-size: 0.9rem;

    color: var(--text-secondary);

    font-weight: 500;

    font-family: var(--font-body);

}



/* 3. Features Section */

.home-features-section {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 36px;

}



.home-section-title {

    font-size: 2rem;

    font-weight: 800;

    text-align: center;

    background: linear-gradient(135deg, #ffffff, var(--text-secondary));

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    font-family: var(--font-heading);

    position: relative;

    padding-bottom: 12px;

}



.home-section-title::after {

    content: '';

    position: absolute;

    bottom: 0;

    left: 50%;

    transform: translateX(-50%);

    width: 60px;

    height: 3px;

    background: linear-gradient(90deg, var(--tiktok-cyan), var(--tiktok-pink));

    border-radius: 99px;

}



.features-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 24px;

    width: 100%;

    max-width: 1000px;

}



.feature-card {

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    padding: 32px;

    border-radius: 24px;

    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    backdrop-filter: blur(10px);

    display: flex;

    flex-direction: column;

    gap: 12px;

    position: relative;

    overflow: hidden;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

}



.feature-card::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: linear-gradient(135deg, rgba(0, 242, 254, 0.05) 0%, rgba(255, 0, 80, 0.05) 100%);

    opacity: 0;

    transition: opacity 0.3s ease;

    z-index: 0;

}



.feature-card:hover {

    transform: translateY(-5px);

}



.feature-card:hover::before {

    opacity: 1;

}



/* Alternating premium neon glows */

.features-grid .feature-card:nth-child(1):hover,

.features-grid .feature-card:nth-child(3):hover {

    border-color: var(--tiktok-cyan);

    box-shadow: 0 0 25px rgba(0, 242, 254, 0.18), var(--shadow-md);

}



.features-grid .feature-card:nth-child(2):hover,

.features-grid .feature-card:nth-child(4):hover {

    border-color: var(--tiktok-pink);

    box-shadow: 0 0 25px rgba(255, 0, 80, 0.18), var(--shadow-md);

}



.feature-card > * {

    position: relative;

    z-index: 1;

}



.feature-icon {

    font-size: 2rem;

    margin-bottom: 4px;

    display: inline-block;

}



.feature-card h3 {

    font-size: 1.25rem;

    font-weight: 700;

    color: var(--text-primary);

    font-family: var(--font-heading);

}



.feature-card p {

    font-size: 0.95rem;

    color: var(--text-secondary);

    line-height: 1.6;

    font-family: var(--font-body);

}



/* 4. Steps Section */

.home-steps-section {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 40px;

}



.steps-container {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;

    width: 100%;

    max-width: 1000px;

    position: relative;

}



.step-card {

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    padding: 38px 28px;

    border-radius: 24px;

    text-align: center;

    position: relative;

    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    backdrop-filter: blur(10px);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);

}



.step-card:hover {

    border-color: var(--tiktok-cyan);

    transform: translateY(-4px);

    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.1), var(--shadow-md);

}



.step-badge {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    background: linear-gradient(135deg, var(--tiktok-cyan), var(--tiktok-pink));

    color: #ffffff;

    font-weight: 800;

    font-size: 1.1rem;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 8px;

    font-family: var(--font-heading);

    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);

}



.step-card h3 {

    font-size: 1.15rem;

    font-weight: 700;

    color: var(--text-primary);

    font-family: var(--font-heading);

}



.step-card p {

    font-size: 0.9rem;

    color: var(--text-secondary);

    line-height: 1.5;

    font-family: var(--font-body);

}



/* Animation Utilities */

@keyframes gradientShift {

    0% { background-position: 0% 50%; }

    50% { background-position: 100% 50%; }

    100% { background-position: 0% 50%; }

}



/* Light Mode Adjustments */

.light-mode .home-page-container,

.light-mode #homePage.home-page-container {

    background: radial-gradient(circle at 50% 15%, rgba(0, 242, 254, 0.05) 0%, rgba(255, 0, 80, 0.05) 45%, transparent 70%) !important;

}



.light-mode .home-hero h1 {

    background: linear-gradient(135deg, #09090b, var(--tiktok-pink), #09090b);

    background-size: 200% 200%;

    -webkit-background-clip: text;

    background-clip: text;

    -webkit-text-fill-color: transparent;

    filter: none;

}



.light-mode .hero-badge {

    border-color: rgba(0, 0, 0, 0.06);

    background: rgba(0, 0, 0, 0.03);

    color: var(--tiktok-pink);

}



.light-mode .stat-value {

    background: linear-gradient(135deg, var(--tiktok-pink), #09090b);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    text-shadow: none;

}



.light-mode .home-section-title {

    background: linear-gradient(135deg, #09090b, var(--text-secondary));

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}



/* Responsive Styles */

@media (max-width: 900px) {

    .features-grid {

        grid-template-columns: 1fr;

    }

    

    .steps-container {

        grid-template-columns: 1fr;

        gap: 32px;

    }

    

    .stats-grid {

        grid-template-columns: 1fr;

        gap: 16px;

    }

    

    .home-hero h1 {

        font-size: 2.4rem;

    }

    

    .home-hero h1 span {

        font-size: 1.4rem;

    }

    

    .home-page-container,

    #homePage.home-page-container {

        gap: 50px !important;

        padding-top: 20px !important;

    }

}



/* =========================================================================
   6. PWA Installation Navigation Button & Bookmark Banner CSS
   ========================================================================= */

.btn-install-nav {
    display: none; /* Controlled by JS */
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 16px !important;
    background: linear-gradient(90deg, #ff0050 0%, #ff5e36 100%) !important;
    border: none !important;
    border-radius: 9999px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    white-space: nowrap;
    outline: none !important;
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.35) !important;
    position: relative;
    user-select: none;
}

.btn-install-nav:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 0, 80, 0.5), 0 0 12px rgba(255, 94, 54, 0.3) !important;
}

.btn-install-nav:active {
    transform: translateY(1px) !important;
}

.light-mode .btn-install-nav {
    box-shadow: 0 4px 12px rgba(255, 0, 80, 0.2) !important;
}

.btn-install-nav-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-install-nav-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    display: inline-block;
}

.btn-install-nav-close {
    background: rgba(0, 0, 0, 0.25) !important;
    border: none !important;
    color: #fff !important;
    width: 18px;
    height: 18px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 9px !important;
    font-weight: bold !important;
    transition: background 0.2s, transform 0.2s;
    margin-left: 4px;
    outline: none !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.btn-install-nav-close:hover {
    background: rgba(0, 0, 0, 0.45) !important;
    transform: scale(1.1) !important;
}


/* =========================================================================
   7. Social Proof Live Status Ticker CSS
   ========================================================================= */

.live-status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 24px auto 32px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: fit-content;
    animation: fadeIn 0.8s ease;
}

.light-mode .live-status-container {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.live-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-status-label {
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--text-secondary);
}

.live-status-label strong {
    color: var(--text-primary);
    font-weight: 700;
}

.live-status-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.12);
}

.light-mode .live-status-divider {
    background: rgba(0, 0, 0, 0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    animation: pulseGlow 1.8s infinite ease-in-out;
}

.pulse-dot.green {
    background: #00FAF0;
}

.pulse-dot.green::after {
    border: 2px solid #00FAF0;
}

.pulse-dot.blue {
    background: #FF0050;
}

.pulse-dot.blue::after {
    border: 2px solid #FF0050;
}

@keyframes pulseGlow {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

@media (max-width: 600px) {
    .live-status-container {
        flex-direction: column;
        gap: 12px;
        border-radius: 20px;
        padding: 14px 20px;
        width: 90%;
        max-width: 320px;
    }
    
    .live-status-divider {
        display: none;
    }
}


/* =========================================================================
   8. Auto Clipboard Detector Modal CSS
   ========================================================================= */

.clipboard-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.clipboard-modal-content {
    background: rgba(15, 15, 19, 0.9);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 20px;
    padding: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.15);
    animation: scaleUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-body);
}

.light-mode .clipboard-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 0, 80, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 30px rgba(255, 0, 80, 0.08);
}

@keyframes scaleUp {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.clipboard-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.clipboard-modal-icon {
    font-size: 24px;
}

.clipboard-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.light-mode .clipboard-modal-header h3 {
    color: #0f0f13;
}

.clipboard-modal-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.clipboard-url-preview {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--text-muted);
    word-break: break-all;
    max-height: 60px;
    overflow-y: auto;
    margin-bottom: 24px;
}

.light-mode .clipboard-url-preview {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

.clipboard-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-clipboard-cancel {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clipboard-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.light-mode .btn-clipboard-cancel {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.btn-clipboard-confirm {
    padding: 10px 20px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 9999px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    transition: all 0.2s;
}

.btn-clipboard-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45);
}

.btn-clipboard-confirm:active {
    transform: translateY(1px);
}


/* =========================================================================
   9. Share-for-VIP Widget CSS
   ========================================================================= */

.share-vip-widget {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 12px rgba(0, 242, 254, 0.05);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.light-mode .share-vip-widget {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(255, 0, 80, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.share-vip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.share-vip-badge {
    background: linear-gradient(135deg, var(--tiktok-pink) 0%, #ff5252 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 0, 80, 0.3);
}

.share-vip-header h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.share-vip-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.share-vip-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-share {
    flex: 1;
    min-width: 140px;
    padding: 10px 16px;
    border: none;
    border-radius: 50px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-share-telegram {
    background: #0088cc;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.btn-share-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 136, 204, 0.45);
}

.btn-share-facebook {
    background: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-share-facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
}

.share-progress-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.light-mode .share-progress-container {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.share-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #00f2fe 0%, #00faf0 100%);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    transition: width 0.4s ease;
}

.light-mode .share-progress-bar {
    background: linear-gradient(90deg, #ff0050 0%, #ff5252 100%);
    box-shadow: none;
}

.share-progress-text {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Success layout inside the widget */
.share-vip-success {
    text-align: center;
    padding: 10px 0;
    animation: fadeIn 0.4s ease;
}

.share-vip-success .success-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    animation: bounce 1s infinite ease-in-out;
}

.share-vip-success h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #00FAF0;
    margin: 0 0 4px 0;
}

.light-mode .share-vip-success h4 {
    color: var(--tiktok-pink);
}

.share-vip-success p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* =========================================================================
   Notifications Dropdown Styles
   ========================================================================= */
.notif-dropdown {
    position: relative;
    display: inline-block;
}

.notif-btn {
    position: relative;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background 0.2s ease, transform 0.2s ease;
}

.notif-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.light-mode .notif-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--tiktok-pink);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-dark);
    animation: pulse-badge-glow 2s infinite;
}

.light-mode .notif-badge {
    border-color: #fff;
}

@keyframes pulse-badge-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 0, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 80, 0);
    }
}

.notif-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 12px;
    width: 360px;
    max-height: 480px;
    background: rgba(18, 18, 22, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    overflow: hidden;
    flex-direction: column;
}

.light-mode .notif-dropdown-content {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.08);
}

.notif-dropdown-content.show {
    display: flex;
    animation: slideDownFadeNotif 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownFadeNotif {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.light-mode .notif-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.notif-header-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.notif-mark-read-btn {
    background: transparent;
    border: none;
    color: var(--tiktok-cyan);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.light-mode .notif-mark-read-btn {
    color: #0088cc;
}

.notif-mark-read-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
}

.light-mode .notif-mark-read-btn:hover {
    background: rgba(0, 136, 204, 0.08);
    color: #0088cc;
}

.notif-list {
    overflow-y: auto;
    flex: 1;
    max-height: 400px;
}

.notif-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.notif-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    text-align: left;
}

.light-mode .notif-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item.unread {
    background: rgba(255, 0, 80, 0.04);
    border-left: 3px solid var(--tiktok-pink);
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.light-mode .notif-item:hover {
    background: rgba(0, 0, 0, 0.01);
}

.light-mode .notif-item.unread {
    background: rgba(255, 0, 80, 0.02);
}

.notif-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.notif-item-badge {
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1;
}

.notif-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    min-width: 150px;
    text-align: left;
}

.notif-item-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
}

.notif-item-body {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
    text-align: left;
}

.light-mode .notif-item-body {
    color: #4b5563;
}

.notif-item-actions {
    margin-top: 8px;
    text-align: left;
}

.notif-item-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--tiktok-cyan);
    text-decoration: none;
    transition: color 0.2s;
}

.light-mode .notif-item-link {
    color: #0088cc;
}

.notif-item-link:hover {
    color: var(--tiktok-pink);
    text-decoration: underline;
}

/* Adjust dropdown position for mobile screens */
@media (max-width: 768px) {
    .notif-dropdown-content {
        position: fixed;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
        top: 60px;
        margin-top: 0;
    }
}

/* ===================================================
   Light Mode: Header Background Override
   =================================================== */
.light-mode .app-header {
    background: linear-gradient(
        135deg,
        rgba(255, 0, 80, 0.06) 0%,
        rgba(245, 245, 250, 0.96) 40%,
        rgba(0, 180, 200, 0.06) 100%
    );
    border-bottom: 1px solid rgba(255, 0, 80, 0.18);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Bell icon bounce on new notification */
@keyframes bellBounce {
    0%   { transform: rotate(0deg); }
    10%  { transform: rotate(-12deg); }
    20%  { transform: rotate(12deg); }
    30%  { transform: rotate(-8deg); }
    40%  { transform: rotate(8deg); }
    50%  { transform: rotate(-4deg); }
    60%  { transform: rotate(4deg); }
    70%  { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}
.notif-btn:has(.notif-badge[style*="flex"]) {
    animation: bellBounce 1.2s ease 0.5s 2;
}

/* ===================================================
   QR Code Generator Styles
   =================================================== */
.btn-download-qr {
    flex: 1;
    background: rgba(245, 158, 11, 0.06);
    border: 1.5px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.btn-download-qr:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.8);
    color: #fef3c7;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transform: translateY(-1.5px);
}

.light-mode .btn-download-qr {
    background: rgba(217, 119, 6, 0.04);
    border-color: rgba(217, 119, 6, 0.2);
    color: #b45309;
}

.light-mode .btn-download-qr:hover {
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.6);
    color: #78350f;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

@keyframes qrSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Clipboard Detector Modal Ad Styling */
.clipboard-ad-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    min-height: 250px;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 400px) {
    .clipboard-modal-content {
        padding: 16px;
    }
    .clipboard-ad-slot {
        transform: scale(0.9);
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* Sidebar ads inside fixed overlays */
.overlay-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.overlay-ad-side {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    z-index: 100005;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 10px;
    overflow: hidden;
}

.overlay-ad-side::before {
    content: "Advertisement";
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    text-align: center;
}

.overlay-ad-left {
    left: 40px;
}

.overlay-ad-right {
    right: 40px;
}

/* Hide side ads inside overlays on smaller screens */
@media (max-width: 992px) {
    .overlay-ad-side {
        display: none !important;
    }
}


