/* ========================================
   PNG Converter — Premium Dark Theme
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #111111;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(26, 26, 26, 0.9);
    --bg-card-hover: rgba(35, 35, 35, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border: rgba(1, 224, 139, 0.15);
    --border-hover: rgba(1, 224, 139, 0.3);
    --border-active: rgba(1, 224, 139, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --accent-1: #01e08b;
    --accent-2: #00c878;
    --accent-3: #00b06a;
    --accent-gradient: linear-gradient(135deg, #01e08b, #00c878);
    --accent-gradient-2: linear-gradient(135deg, #00c878, #00b06a);
    --success: #01e08b;
    --warning: #fbbf24;
    --error: #f87171;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(1, 224, 139, 0.2);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 64px;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="10" fill="%2301e08b" opacity="0.2"/><circle cx="12" cy="12" r="4" fill="%2301e08b"/></svg>') 12 12, auto;
}

/* Custom Cursor Styles */
a, button, input[type="button"], input[type="submit"], 
.tab, .mode-btn, .format-card, .language-option, 
.language-btn, .feature-card, .step-card, .benefit-card,
.navbar-left-link, .hero-btn, [role="button"] {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none"><circle cx="14" cy="14" r="12" fill="%2301e08b" opacity="0.3"/><circle cx="14" cy="14" r="6" fill="%2301e08b"/><circle cx="14" cy="14" r="3" fill="%23ffffff"/></svg>') 14 14, pointer !important;
}

input[type="text"], input[type="number"], 
input[type="range"], textarea, select {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><rect x="10" y="2" width="4" height="20" fill="%2301e08b" opacity="0.6"/><rect x="8" y="10" width="8" height="4" fill="%2301e08b"/></svg>') 12 12, text !important;
}

.dropzone, [draggable="true"] {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none"><circle cx="14" cy="14" r="12" stroke="%2301e08b" stroke-width="2" fill="none" opacity="0.5"/><path d="M14 8 L14 20 M8 14 L20 14" stroke="%2301e08b" stroke-width="2"/></svg>') 14 14, move !important;
}

button:disabled, [disabled] {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none"><circle cx="14" cy="14" r="12" fill="%23f87171" opacity="0.3"/><line x1="8" y1="8" x2="20" y2="20" stroke="%23f87171" stroke-width="2"/><line x1="20" y1="8" x2="8" y2="20" stroke="%23f87171" stroke-width="2"/></svg>') 14 14, not-allowed !important;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(1, 224, 139, 0.15);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-left-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-left-link:hover .navbar-logo {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(1, 224, 139, 0.6));
}

.navbar-left-link:hover .navbar-title {
    color: #01e08b;
    text-shadow: 0 0 20px rgba(1, 224, 139, 0.6), 0 0 40px rgba(1, 224, 139, 0.4);
    animation: shake 0.5s ease;
}

.navbar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(1, 224, 139, 0.6));
}

.navbar-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    position: relative;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-title:hover {
    color: #01e08b;
    text-shadow: 0 0 20px rgba(1, 224, 139, 0.6), 0 0 40px rgba(1, 224, 139, 0.4);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* --- Language Selector --- */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(1, 224, 139, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(1, 224, 139, 0.1);
    border-color: rgba(1, 224, 139, 0.4);
    transform: translateY(-1px);
}

.language-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.language-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.language-btn.active .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(1, 224, 139, 0.2);
    border-radius: 12px;
    padding: 8px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(1, 224, 139, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb {
    background: rgba(1, 224, 139, 0.3);
    border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(1, 224, 139, 0.5);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.language-option:hover {
    background: rgba(1, 224, 139, 0.1);
    transform: translateX(4px);
}

.language-option.active {
    background: rgba(1, 224, 139, 0.15);
    color: var(--accent-1);
}

.lang-flag {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* --- Animated Background --- */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 20s ease-in-out infinite alternate;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(1, 224, 139, 0.15), transparent 70%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(1, 224, 139, 0.12), transparent 70%);
    bottom: -5%;
    right: -5%;
    animation-delay: -7s;
}

.bg-glow-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(1, 224, 139, 0.1), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
    100% { transform: translate(10px, -10px) scale(1.05); }
}

/* --- App Container --- */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px 48px;
}

/* --- Tabs --- */
.tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    margin-bottom: 28px;
    margin-top: 48px;
}

.tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
    border-radius: inherit;
    z-index: -1;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: #111111;
    font-weight: 600;
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.tab.active::before {
    opacity: 1;
}

.tab-icon {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.tab span, .tab {
    position: relative;
    z-index: 1;
}

/* --- Tab Content --- */
.tab-content {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mode Toggle --- */
.mode-toggle {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
}

.mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.mode-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.mode-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.mode-icon {
    width: 16px;
    height: 16px;
}

.conversion-mode {
    display: none;
    animation: fadeSlideIn 0.3s ease;
}

.conversion-mode.active {
    display: block;
}

/* --- Drop Zone --- */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    padding: 4px;
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg-glass);
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
    border-radius: inherit;
}

.drop-zone:hover {
    border-color: var(--border-hover);
}

.drop-zone:hover .drop-icon {
    transform: scale(1.08);
    color: var(--accent-1);
}

.drop-zone.drag-over {
    border-color: var(--accent-1);
    background: rgba(129, 140, 248, 0.05);
}

.drop-zone.drag-over::before {
    opacity: 0.05;
}

.drop-zone-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.drop-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
    transition: var(--transition);
}

.drop-icon svg {
    width: 100%;
    height: 100%;
}

.drop-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.drop-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.drop-formats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.format-chip {
    padding: 4px 12px;
    background: rgba(1, 224, 139, 0.1);
    border: 1px solid rgba(1, 224, 139, 0.2);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-1);
    letter-spacing: 0.05em;
}

/* --- Preview Area --- */
.preview-area {
    margin-top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(12px);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.inline-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
    color: var(--error);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: var(--transition-fast);
}

.preview-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .preview-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    font-size: 0.68rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-item .preview-size {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.preview-item-dds {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.preview-item-dds .dds-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-2);
}

.preview-item-dds .dds-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    word-break: break-all;
}

/* --- Format Cards --- */
.format-section {
    margin-top: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.format-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.format-card {
    cursor: pointer;
}

.format-card input {
    display: none;
}

.format-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    transition: var(--transition);
    text-align: center;
}

.format-card-inner:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.format-card input:checked + .format-card-inner {
    border-color: var(--accent-1);
    background: rgba(1, 224, 139, 0.08);
    box-shadow: var(--shadow-glow), inset 0 0 0 1px rgba(1, 224, 139, 0.15);
}

.format-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.format-icon-jpg {
    background: linear-gradient(135deg, rgba(1, 224, 139, 0.15), rgba(0, 200, 120, 0.15));
    color: #01e08b;
    border: 1px solid rgba(1, 224, 139, 0.2);
}

.format-icon-webp {
    background: linear-gradient(135deg, rgba(1, 224, 139, 0.15), rgba(0, 200, 120, 0.15));
    color: #01e08b;
    border: 1px solid rgba(1, 224, 139, 0.2);
}

.format-icon-svg {
    background: linear-gradient(135deg, rgba(1, 224, 139, 0.15), rgba(0, 200, 120, 0.15));
    color: #01e08b;
    border: 1px solid rgba(1, 224, 139, 0.2);
}

.format-icon-dds {
    background: linear-gradient(135deg, rgba(1, 224, 139, 0.15), rgba(0, 200, 120, 0.15));
    color: #01e08b;
    border: 1px solid rgba(1, 224, 139, 0.2);
}

.format-icon-ico {
    background: linear-gradient(135deg, rgba(1, 224, 139, 0.15), rgba(0, 200, 120, 0.15));
    color: #01e08b;
    border: 1px solid rgba(1, 224, 139, 0.2);
}

.format-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.format-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* --- Quality Controls --- */
.quality-section {
    margin-top: 24px;
}

.quality-controls {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
}

.quality-group {
    margin-bottom: 0;
}

.quality-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.quality-value {
    font-weight: 700;
    color: var(--accent-1);
    font-size: 0.9rem;
}

.quality-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #fff;
    outline: none;
    cursor: pointer;
}

.quality-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(1, 224, 139, 0.5);
    transition: var(--transition-fast);
}

.quality-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(1, 224, 139, 0.7);
}

.quality-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 12px rgba(1, 224, 139, 0.5);
}

.quality-hints {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* SVG Options */
.svg-mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.svg-mode-card {
    cursor: pointer;
}

.svg-mode-card input {
    display: none;
}

.svg-mode-inner {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.svg-mode-inner strong {
    font-size: 0.82rem;
    font-weight: 600;
}

.svg-mode-inner span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.svg-mode-card input:checked + .svg-mode-inner {
    border-color: var(--accent-1);
    background: rgba(1, 224, 139, 0.06);
}

.svg-mode-card:hover .svg-mode-inner {
    border-color: var(--border-hover);
}

/* --- Convert Button --- */
.convert-action {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.btn-convert {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 48px;
    border: none;
    background: var(--accent-gradient);
    color: #111111;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md), 0 0 30px rgba(1, 224, 139, 0.3);
    overflow: hidden;
}

.btn-convert::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    transition: var(--transition);
}

.btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(1, 224, 139, 0.4);
}

.btn-convert:active {
    transform: translateY(0);
}

.btn-convert:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon-svg {
    width: 20px;
    height: 20px;
}

.btn-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Results --- */
.results-section {
    margin-top: 28px;
    animation: fadeSlideIn 0.5s ease;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-download-all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(1, 224, 139, 0.3);
    background: rgba(1, 224, 139, 0.08);
    color: var(--success);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-download-all:hover {
    background: rgba(1, 224, 139, 0.15);
    border-color: rgba(1, 224, 139, 0.5);
    transform: translateY(-1px);
}

.btn-download-all svg {
    width: 16px;
    height: 16px;
}

.results-grid {
    display: grid;
    gap: 12px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.result-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.result-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-thumb-dds {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-2);
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.result-meta .badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-jpg { background: rgba(1, 224, 139, 0.12); color: #01e08b; }
.badge-webp { background: rgba(1, 224, 139, 0.12); color: #01e08b; }
.badge-svg { background: rgba(1, 224, 139, 0.12); color: #01e08b; }
.badge-dds { background: rgba(1, 224, 139, 0.12); color: #01e08b; }
.badge-png { background: rgba(1, 224, 139, 0.12); color: #01e08b; }
.badge-ico { background: rgba(1, 224, 139, 0.12); color: #01e08b; }

.result-savings {
    font-weight: 500;
}

.savings-positive { color: var(--success); }
.savings-negative { color: var(--warning); }

.btn-download {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-download:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-download svg {
    width: 16px;
    height: 16px;
}

/* --- Footer --- */
.footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    font-size: 0.82rem;
    color: var(--text-primary);
    pointer-events: auto;
    animation: toastIn 0.4s ease, toastOut 0.3s ease forwards;
    animation-delay: 0s, 3s;
    min-width: 280px;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--error); }
.toast-info { border-left: 3px solid var(--accent-1); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* --- Background Remove Specific --- */
.processing-section {
    margin-top: 24px;
    animation: fadeSlideIn 0.5s ease;
}

.processing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    text-align: center;
}

.processing-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.processing-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bg-remove-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.comparison-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.comparison-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: 
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-image img,
.comparison-image canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Video/Audio Converter Specific --- */
.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    margin-top: 20px;
    animation: fadeSlideIn 0.4s ease;
}

.file-info-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-1);
    flex-shrink: 0;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.file-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Dropdown Styles */
.container {
    width: 100%;
    max-width: 900px;
}

.label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #ffffff;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-header {
    background-color: #1a1a1a;
    border: 2px solid #2a5a4a;
    border-radius: 8px;
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.select-header:hover {
    border-color: #3a7a6a;
}

.select-header.active {
    border-color: #2a7a6a;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#selectedValue {
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
}

.arrow {
    color: #888;
    transition: transform 0.3s ease;
}

.select-header.active .arrow {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border: 2px solid #2a7a6a;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.select-dropdown.active {
    max-height: 300px;
    opacity: 1;
}

.option {
    padding: 14px 18px;
    cursor: pointer;
    font-size: 15px;
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.option:hover {
    background-color: #252525;
}

.option.selected {
    background-color: #1e5a9e;
    color: #ffffff;
}

.option:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.info-text {
    margin-top: 16px;
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

/* Legacy format-select for backwards compatibility */
.format-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2301e08b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    backdrop-filter: blur(12px);
}

.format-select:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.format-select:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(1, 224, 139, 0.1);
    background: var(--bg-card-hover);
}

.format-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px;
    font-weight: 500;
}

.format-select option:hover {
    background: rgba(1, 224, 139, 0.1);
}

.format-select option:checked {
    background: rgba(1, 224, 139, 0.15);
    color: var(--accent-1);
}

.progress-section {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    animation: fadeSlideIn 0.4s ease;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 100px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(1, 224, 139, 0.5);
}

.progress-text {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-1);
}

/* --- Utility --- */
.hidden {
    display: none !important;
}

/* --- Image Resizer Specific --- */
.resizer-preview-box {
    width: 100%;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.resizer-preview-box img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.resizer-info-text {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
}

.resizer-button-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.resizer-button-group .btn-convert {
    flex: 2;
}

.resizer-button-group .btn-reset {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.resizer-button-group .btn-reset:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
    color: var(--error);
    transform: translateY(-1px);
}

.resizer-button-group .btn-reset svg {
    width: 18px;
    height: 18px;
}

.resize-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.resize-type-card {
    cursor: pointer;
}

.resize-type-card input {
    display: none;
}

.resize-type-inner {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.resize-type-inner strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.resize-type-inner span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.resize-type-card input:checked + .resize-type-inner {
    border-color: var(--accent-1);
    background: rgba(1, 224, 139, 0.08);
    box-shadow: 0 0 0 1px rgba(1, 224, 139, 0.15), var(--shadow-glow);
}

.resize-type-card:hover .resize-type-inner {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dimension-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.dimension-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dimension-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.dimension-input:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.dimension-input:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(1, 224, 139, 0.1);
    background: var(--bg-card-hover);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.checkbox-label:hover {
    background: rgba(1, 224, 139, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-1);
    border-radius: 4px;
}

.checkbox-label span {
    font-weight: 500;
}

/* --- Utility --- */

/* --- Responsive --- */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 20px;
    }

    .navbar-title {
        font-size: 1.25rem;
    }

    .navbar-title::before,
    .navbar-title::after {
        height: 20px;
    }

    .tabs {
        margin-top: 40px;
        gap: 5px;
        padding: 5px;
    }

    .tab {
        padding: 16px 20px;
        font-size: 0.88rem;
        gap: 8px;
    }

    .tab-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 64px;
    }

    .navbar-container {
        padding: 0 16px;
        height: 56px;
    }

    .navbar-title {
        font-size: 1.1rem;
        padding: 0 16px;
    }

    .navbar-title::before,
    .navbar-title::after {
        width: 3px;
        height: 18px;
    }

    .app-container {
        padding: 0 16px 32px;
    }

    .tabs {
        margin-top: 32px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .tab {
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
        padding: 12px 10px;
        font-size: 0.8rem;
        gap: 5px;
    }

    .tab-icon {
        width: 15px;
        height: 15px;
    }

    .format-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-item {
        flex-direction: column;
        text-align: center;
    }

    .result-info {
        width: 100%;
    }

    .svg-mode-cards {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .resize-type-cards {
        grid-template-columns: 1fr;
    }

    .dimension-inputs {
        grid-template-columns: 1fr;
    }

    .resizer-button-group {
        flex-direction: column;
    }

    .resizer-button-group .btn-convert,
    .resizer-button-group .btn-reset {
        flex: 1;
    }
}

/* =========================================
   HOME PAGE STYLES
   ========================================= */

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Visitor Counter --- */
.visitor-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(1, 224, 139, 0.08);
    border: 1px solid rgba(1, 224, 139, 0.25);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.visitor-counter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(1, 224, 139, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visitor-counter:hover {
    background: rgba(1, 224, 139, 0.12);
    border-color: rgba(1, 224, 139, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 224, 139, 0.2);
}

.visitor-counter:hover::before {
    opacity: 1;
}

.visitor-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.visitor-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-1);
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    min-width: 40px;
    text-align: center;
    text-shadow: 0 0 10px rgba(1, 224, 139, 0.3);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(1, 224, 139, 0.1);
    border: 1px solid rgba(1, 224, 139, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(1, 224, 139, 0.2);
    border-color: rgba(1, 224, 139, 0.4);
    transform: translateY(-1px);
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px 48px;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    text-align: center;
    margin-bottom: 80px;
}

.hero-logo {
    margin-bottom: 32px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-logo-img {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 30px rgba(1, 224, 139, 0.5));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #01e08b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.hero-btn-primary {
    background: var(--accent-gradient);
    color: #111111;
    box-shadow: var(--shadow-md), 0 0 30px rgba(1, 224, 139, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(1, 224, 139, 0.4);
}

.hero-btn-icon {
    width: 24px;
    height: 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 224, 139, 0.1);
    border: 1px solid rgba(1, 224, 139, 0.2);
    border-radius: var(--radius-md);
    color: var(--accent-1);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .navbar-right {
        gap: 12px;
    }
    
    .nav-link span {
        display: none;
    }
}

/* Info Sections */
.info-section {
    margin-bottom: 5rem;
}

.info-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #01e08b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #01e08b 0%, #00c878 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #111111;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(1, 224, 139, 0.4);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.step-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(1, 224, 139, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(1, 224, 139, 0.4);
    box-shadow: 
        0 0 40px rgba(1, 224, 138, 0.174),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(1, 224, 139, 0.2) 0%, rgba(1, 224, 139, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    stroke: #01e08b;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.benefit-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}


/* ========================================
   Coffee Modal (Donation Popup)
   ======================================== */
.coffee-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.coffee-modal.active {
    display: flex;
}

.coffee-modal-content {
    background: linear-gradient(145deg, #2d2d2d 0%, #1f1f1f 100%);
    border: 1px solid rgba(255, 221, 0, 0.3);
    border-radius: 28px;
    padding: 56px 48px;
    max-width: 560px;
    width: 90%;
    position: relative;
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(255, 221, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.coffee-modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 221, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 221, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.coffee-modal-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 221, 0, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.coffee-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.coffee-modal-close:hover {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.3);
    color: #f87171;
    transform: rotate(90deg) scale(1.05);
}

.coffee-modal-close svg {
    width: 20px;
    height: 20px;
}

.coffee-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: linear-gradient(145deg, rgba(255, 221, 0, 0.15), rgba(255, 129, 63, 0.1));
    border: 2px solid rgba(255, 221, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 3s ease-in-out infinite;
    z-index: 1;
}

.coffee-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 221, 0, 0.2), transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.coffee-icon svg {
    width: 56px;
    height: 56px;
    color: #FFDD00;
    filter: drop-shadow(0 4px 16px rgba(255, 221, 0, 0.5));
}

.coffee-modal-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #FFDD00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.coffee-modal-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.coffee-modal-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.coffee-btn {
    padding: 18px 40px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    position: relative;
    overflow: hidden;
}

.coffee-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coffee-btn:hover::before {
    opacity: 1;
}

.coffee-btn-primary {
    background: linear-gradient(135deg, #FFDD00 0%, #FF813F 100%);
    color: #000000;
    box-shadow: 
        0 4px 24px rgba(255, 221, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.coffee-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 36px rgba(255, 221, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.coffee-btn-primary:active {
    transform: translateY(-1px);
}

.coffee-btn-secondary {
    background: rgba(79, 79, 79, 0.8);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.coffee-btn-secondary:hover {
    background: rgba(79, 79, 79, 1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.coffee-btn svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 640px) {
    .coffee-modal-content {
        padding: 40px 28px;
        border-radius: 24px;
    }
    
    .coffee-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
    }
    
    .coffee-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .coffee-modal-title {
        font-size: 1.65rem;
    }
    
    .coffee-modal-message {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }
    
    .coffee-modal-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .coffee-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ========================================
   Coffee Button in Navbar
   ======================================== */
.coffee-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(1, 224, 139, 0.3);
    border-radius: var(--radius-md);
    color: var(--accent-1);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.coffee-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.coffee-nav-btn svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.coffee-nav-btn .coffee-icon-img {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    filter: brightness(0) saturate(100%) invert(73%) sepia(89%) saturate(449%) hue-rotate(95deg) brightness(98%) contrast(96%);
}

.coffee-nav-btn:hover .coffee-icon-img {
    filter: brightness(0) saturate(100%) invert(73%) sepia(89%) saturate(449%) hue-rotate(95deg) brightness(110%) contrast(96%) drop-shadow(0 0 8px rgba(1, 224, 139, 0.6));
}

.coffee-nav-btn:hover {
    border-color: var(--accent-1);
    box-shadow: 0 0 20px rgba(1, 224, 139, 0.3);
    transform: translateY(-2px);
}

.coffee-nav-btn:hover::before {
    opacity: 0.1;
}

.coffee-nav-btn:hover svg {
    color: var(--accent-1);
    filter: drop-shadow(0 0 8px rgba(1, 224, 139, 0.6));
}

.coffee-nav-btn:active {
    transform: translateY(0);
}



/* ========================================
   Discord Button in Navbar
   ======================================== */
.discord-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: var(--radius-md);
    color: #5865F2;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.discord-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    opacity: 0;
    transition: var(--transition);
}

.discord-nav-btn i {
    font-size: 22px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.discord-nav-btn:hover {
    border-color: #5865F2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
    transform: translateY(-2px);
}

.discord-nav-btn:hover::before {
    opacity: 0.1;
}

.discord-nav-btn:hover i {
    color: #5865F2;
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.6));
}

.discord-nav-btn:active {
    transform: translateY(0);
}

/* ========================================
   Instagram Button in Navbar
   ======================================== */
.instagram-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(225, 48, 108, 0.3);
    border-radius: var(--radius-md);
    color: #E1306C;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.instagram-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #833AB4, #E1306C, #FD1D1D, #F77737);
    opacity: 0;
    transition: var(--transition);
}

.instagram-nav-btn i {
    font-size: 22px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.instagram-nav-btn:hover {
    border-color: #E1306C;
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.3);
    transform: translateY(-2px);
}

.instagram-nav-btn:hover::before {
    opacity: 0.1;
}

.instagram-nav-btn:hover i {
    color: #E1306C;
    filter: drop-shadow(0 0 8px rgba(225, 48, 108, 0.6));
}

.instagram-nav-btn:active {
    transform: translateY(0);
}

/* ========================================
   GitHub Button in Navbar
   ======================================== */
.github-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.github-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffffff, #e6e6e6);
    opacity: 0;
    transition: var(--transition);
}

.github-nav-btn i {
    font-size: 22px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.github-nav-btn:hover {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.github-nav-btn:hover::before {
    opacity: 0.1;
}

.github-nav-btn:hover i {
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.github-nav-btn:active {
    transform: translateY(0);
}

/* ========================================
   Discord Modal
   ======================================== */
.discord-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.discord-modal.active {
    display: flex;
}

.discord-modal-content {
    background: linear-gradient(145deg, #2f3136 0%, #36393f 100%);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 28px;
    padding: 56px 48px;
    max-width: 560px;
    width: 90%;
    position: relative;
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(88, 101, 242, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.discord-modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(88, 101, 242, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 101, 242, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.discord-modal-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.discord-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.discord-modal-close:hover {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.3);
    color: #f87171;
    transform: rotate(90deg) scale(1.05);
}

.discord-modal-close svg {
    width: 20px;
    height: 20px;
}

.discord-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: linear-gradient(145deg, rgba(88, 101, 242, 0.15), rgba(88, 101, 242, 0.05));
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 3s ease-in-out infinite;
    z-index: 1;
}

.discord-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.2), transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.discord-icon i {
    font-size: 56px;
    color: #5865F2;
    filter: drop-shadow(0 4px 16px rgba(88, 101, 242, 0.5));
}

.discord-modal-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #5865F2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.discord-modal-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.discord-modal-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.discord-btn {
    padding: 18px 40px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    position: relative;
    overflow: hidden;
}

.discord-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discord-btn:hover::before {
    opacity: 1;
}

.discord-btn-primary {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: #ffffff;
    box-shadow: 
        0 4px 24px rgba(88, 101, 242, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.discord-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 36px rgba(88, 101, 242, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.discord-btn-primary:active {
    transform: translateY(-1px);
}

.discord-btn-secondary {
    background: rgba(79, 84, 92, 0.8);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-btn-secondary:hover {
    background: rgba(79, 84, 92, 1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.discord-btn i {
    font-size: 20px;
}

@media (max-width: 640px) {
    .discord-modal-content {
        padding: 40px 28px;
        border-radius: 24px;
    }
    
    .discord-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
    }
    
    .discord-icon i {
        font-size: 48px;
    }
    
    .discord-modal-title {
        font-size: 1.65rem;
    }
    
    .discord-modal-message {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }
    
    .discord-modal-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .discord-btn {
        width: 100%;
        justify-content: center;
    }
}
