/* ============================================
   SyNx - Video Quality Enhancer
   Premium Dark Theme Stylesheet
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
    --bg-primary: #050510;
    --bg-secondary: #0a0a1a;
    --bg-card: rgba(12, 12, 30, 0.7);
    --bg-card-hover: rgba(18, 18, 40, 0.8);
    --bg-drop: rgba(15, 15, 35, 0.6);

    --accent-cyan: #00d4ff;
    --accent-purple: #7b2ff7;
    --accent-pink: #a855f7;
    --accent-gradient: linear-gradient(135deg, #00d4ff, #7b2ff7);
    --accent-gradient-2: linear-gradient(135deg, #7b2ff7, #a855f7, #00d4ff);

    --text-primary: #f0f0f8;
    --text-secondary: #8888a0;
    --text-muted: #555570;

    --border-color: rgba(0, 212, 255, 0.12);
    --border-hover: rgba(0, 212, 255, 0.3);

    --glow-cyan: 0 0 30px rgba(0, 212, 255, 0.15);
    --glow-purple: 0 0 30px rgba(123, 47, 247, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --font-primary: 'Outfit', 'Inter', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
    line-height: 1.6;
}

/* --- Particle Canvas --- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Glow Orbs --- */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.glow-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
    top: -150px;
    right: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.glow-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.12), transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.glow-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-50px, 80px) scale(1.1);
    }

    50% {
        transform: translate(30px, 120px) scale(0.95);
    }

    75% {
        transform: translate(-80px, 40px) scale(1.05);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(60px, -80px) scale(1.1);
    }

    66% {
        transform: translate(-40px, -40px) scale(0.9);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }
}

/* --- Container --- */
.container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* --- Header --- */
.header {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 8px;
}

.logo-icon {
    position: relative;
    animation: logoSpin 8s linear infinite;
}

@keyframes logoSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-shadow: none;
    position: relative;
}

.logo-text::after {
    content: 'SyNx';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.tagline {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* --- Timer Badge --- */
.timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-family: 'Inter', monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 20px 4px rgba(0, 212, 255, 0.1);
    }
}

.timer-badge.warning {
    color: #ffaa00;
    border-color: rgba(255, 170, 0, 0.3);
    background: rgba(255, 170, 0, 0.08);
}

.timer-badge.danger {
    color: #ff4444;
    border-color: rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.08);
    animation: timerDanger 1s ease-in-out infinite;
}

@keyframes timerDanger {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-subtitle code {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 2px 10px;
    border-radius: 6px;
    font-family: 'Inter', monospace;
    font-size: 14px;
    color: var(--accent-cyan);
    direction: ltr;
}

/* --- Upload Card --- */
.upload-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.card-glow {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(123, 47, 247, 0.1), rgba(168, 85, 247, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: var(--transition-normal);
}

.upload-card:hover .card-glow {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.5), rgba(123, 47, 247, 0.2), rgba(168, 85, 247, 0.5));
}

.card-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
}

/* --- Key Input Section --- */
.key-input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.key-icon-wrapper {
    margin-bottom: 4px;
    animation: keyFloat 3s ease-in-out infinite;
}

@keyframes keyFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.key-input-group {
    width: 100%;
    position: relative;
}

.key-input {
    width: 100%;
    padding: 18px 24px;
    font-family: 'Inter', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.04);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition-normal);
    direction: ltr;
}

.key-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 4px;
}

.key-input:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.06);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.key-input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.key-input:focus+.key-input-line {
    width: 100%;
}

.key-error {
    font-size: 14px;
    color: #ff6b6b;
    min-height: 20px;
    text-align: center;
    font-weight: 500;
}

.key-activate-btn {
    margin-top: 4px;
}

/* --- Discord CTA --- */
.discord-cta {
    margin-top: 32px;
    width: 100%;
}

.discord-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.discord-divider::before,
.discord-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.discord-divider span {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: #5865F2;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-normal);
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

/* --- States --- */
.state {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.state.active-state {
    display: flex;
    animation: fadeIn 0.4s ease-out;
}

/* --- Drop Zone --- */
.drop-zone {
    width: 100%;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.03), transparent 70%);
    opacity: 0;
    transition: var(--transition-normal);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.03);
    box-shadow: var(--glow-cyan);
    transform: scale(1.01);
}

.drop-zone:hover::before,
.drop-zone.drag-over::before {
    opacity: 1;
}

.drop-zone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* --- Upload Icon --- */
.upload-icon-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.upload-icon-bg {
    position: absolute;
    inset: -12px;
    background: var(--accent-gradient);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(10px);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

.upload-icon {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
    animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.drop-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.drop-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* --- Format Badges --- */
.supported-formats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.format-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.max-size {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- File Info --- */
.file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-md);
}

.file-icon-wrapper {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    color: white;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.remove-file-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 60, 60, 0.1);
    border: 1px solid rgba(255, 60, 60, 0.2);
    border-radius: 50%;
    color: #ff6b6b;
    cursor: pointer;
    transition: var(--transition-fast);
}

.remove-file-btn:hover {
    background: rgba(255, 60, 60, 0.2);
    border-color: rgba(255, 60, 60, 0.4);
    transform: scale(1.1);
}

/* --- Convert Button --- */
.convert-btn {
    position: relative;
    width: 100%;
    padding: 18px 32px;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3), 0 4px 15px rgba(123, 47, 247, 0.2);
}

.convert-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 22px;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* --- Processing State --- */
.processing-animation {
    margin-bottom: 8px;
}

.processing-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.processing-ring svg {
    animation: processRotate 2s linear infinite;
}

@keyframes processRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.progress-ring {
    animation: progressDash 2s ease-in-out infinite;
}

@keyframes progressDash {
    0% {
        stroke-dashoffset: 314;
    }

    50% {
        stroke-dashoffset: 50;
    }

    100% {
        stroke-dashoffset: 314;
    }
}

.processing-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    animation: processGear 3s linear infinite;
}

@keyframes processGear {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.processing-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.processing-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.processing-dots {
    display: flex;
    gap: 8px;
}

.processing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    animation: dotBounce 1.4s ease-in-out infinite;
}

.processing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.processing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Complete State --- */
.complete-animation {
    margin-bottom: 8px;
}

.checkmark-circle {
    animation: checkPop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.check-circle {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: checkCircleDraw 0.8s ease-out 0.2s forwards;
}

@keyframes checkCircleDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.check-mark {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: checkDraw 0.4s ease-out 0.6s forwards;
}

@keyframes checkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.complete-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.complete-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* --- Download Button --- */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.new-file-btn {
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.new-file-btn:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}

/* --- Error State --- */
.error-icon {
    font-size: 48px;
}

.error-title {
    font-size: 22px;
    font-weight: 700;
    color: #ff6b6b;
}

.error-message {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 400px;
}

.retry-btn {
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* --- Features Section --- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.feature-card {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow-cyan);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Footer --- */
.footer {
    text-align: center;
    margin-top: 48px;
    padding: 24px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.logout-btn {
    padding: 8px 16px;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.logout-btn:hover {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.05);
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .container {
        padding: 28px 16px 48px;
    }

    .logo-text {
        font-size: 36px;
    }

    .hero-title {
        font-size: 24px;
    }

    .card-content {
        padding: 24px;
    }

    .drop-zone {
        padding: 36px 20px;
    }

    .key-input {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 20px 16px;
    }
}

@media (max-width: 400px) {
    .logo-text {
        font-size: 30px;
    }

    .hero-title {
        font-size: 20px;
    }

    .card-content {
        padding: 20px 16px;
    }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.4);
}

/* --- Selection --- */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: white;
}