/* ============ RESET & VARIABLES - STUDIO DARK THEME ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background: #0B0D10;
    color: #E9EEF5;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(64, 224, 255, 0.03) 0%, transparent 45%),
                radial-gradient(circle at 80% 70%, rgba(64, 224, 255, 0.03) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
    width: 100%;
}

:root {
    --primary: #40E0FF;
    --primary-dark: #00B8D4;
    --primary-light: rgba(64, 224, 255, 0.15);
    --primary-glow: rgba(64, 224, 255, 0.25);
    --secondary: #40E0FF;
    --accent: #00B8D4;
    --warning: #FFB74D;
    --danger: #FF5252;
    --success: #4CAF50;
    --info: #40E0FF;
    --surface-0: #0B0D10;
    --surface-1: #151A21;
    --surface-2: #1E2630;
    --surface-3: #273140;
    --text-primary: #E9EEF5;
    --text-secondary: #C0C8D2;
    --text-tertiary: #9AA5B5;
    --text-muted: #6B7A8F;
    --border: #273140;
    --border-strong: #3A4A60;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(64, 224, 255, 0.25);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --cyan-gradient: linear-gradient(135deg, #40E0FF, #00B8D4);
    --bg-primary: #0B0D10;
    --card-bg: #151A21;
    --card-hover: #1E2630;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 13, 16, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #273140;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--cyan-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(64, 224, 255, 0.3);
    transition: var(--transition);
}

.logo-link:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 0 25px rgba(64, 224, 255, 0.5);
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #E9EEF5;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.brand-name span {
    color: #40E0FF;
    font-weight: 800;
    position: relative;
}

.brand-name span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyan-gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.logo-link:hover .brand-name span::after {
    transform: scaleX(1);
    transform-origin: left;
}

.slogan-badge {
    display: none;
    background: rgba(64, 224, 255, 0.1);
    color: #40E0FF;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 30px;
    border: 1px solid #273140;
    white-space: nowrap;
    align-items: center;
    gap: 4px;
}

@media (min-width: 480px) { .slogan-badge { display: inline-flex; } }

/* Desktop Navigation */
.nav-desktop { display: none; }
@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 2px;
        margin: 0 auto;
        padding: 4px;
        background: rgba(21, 26, 33, 0.6);
        border-radius: 60px;
        border: 1px solid #273140;
        backdrop-filter: blur(8px);
    }
    .nav-link {
        color: #9AA5B5;
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 500;
        transition: all 0.2s ease;
        white-space: nowrap;
        padding: 6px 12px;
        border-radius: 40px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        border: 1px solid transparent;
    }
    .nav-link i { font-size: 0.75rem; color: #6B7A8F; transition: all 0.2s ease; }
    .nav-link:hover { color: #40E0FF; background: rgba(64, 224, 255, 0.1); border-color: rgba(64, 224, 255, 0.2); transform: translateY(-1px); }
    .nav-link:hover i { color: #40E0FF; }
    .nav-link.active { background: var(--cyan-gradient); color: #0B0D10; border-color: transparent; box-shadow: 0 4px 12px rgba(64, 224, 255, 0.3); }
    .nav-link.active i { color: #0B0D10; }
    .nav-dropdown { position: relative; }
    .dropdown-toggle { cursor: pointer; }
    .dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: #151A21;
        border-radius: 16px;
        padding: 8px;
        min-width: 200px;
        box-shadow: var(--shadow-lg);
        border: 1px solid #273140;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        z-index: 1000;
        backdrop-filter: blur(12px);
    }
    .nav-dropdown:hover .dropdown-menu,
    .dropdown-menu:hover { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    .dropdown-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        color: #9AA5B5;
        text-decoration: none;
        font-size: 0.8rem;
        border-radius: 10px;
        transition: all 0.2s ease;
    }
    .dropdown-menu a i { width: 16px; color: #40E0FF; font-size: 0.85rem; }
    .dropdown-menu a:hover { background: rgba(64, 224, 255, 0.1); color: #40E0FF; transform: translateX(4px); }
    .dropdown-menu a.active { background: rgba(64, 224, 255, 0.15); color: #40E0FF; font-weight: 600; }
    .dropdown-group-title {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
        color: #40E0FF;
        padding: 8px 12px 4px;
        margin-top: 4px;
        border-bottom: 1px solid #273140;
    }
    .dropdown-group-title:first-of-type { margin-top: 0; }
    .new-badge {
        margin-left: auto;
        font-size: 0.55rem;
        background: #40E0FF;
        color: #0B0D10;
        padding: 2px 6px;
        border-radius: 10px;
        font-weight: 600;
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.favorites-btn {
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--cyan-gradient);
    color: #0B0D10;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    min-height: 44px;
    box-shadow: 0 4px 12px rgba(64, 224, 255, 0.3);
    white-space: nowrap;
}

.favorites-btn .favorites-count {
    background: white;
    color: #40E0FF;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.favorites-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(64, 224, 255, 0.4); }

/* ===== IMPROVED SIGN IN BUTTON - CYAN GRADIENT THEME ===== */
.auth-btn {
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--cyan-gradient);
    border: none;
    color: #0B0D10;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
    min-height: 44px;
    box-shadow: 0 2px 8px rgba(64, 224, 255, 0.2);
}

.auth-btn i {
    font-size: 0.9rem;
    color: #0B0D10;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(64, 224, 255, 0.4);
    background: linear-gradient(135deg, #00B8D4, #40E0FF);
}

/* User Profile styling */
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1E2630;
    border: 1px solid #273140;
    border-radius: 60px;
    padding: 4px 4px 4px 12px;
    transition: var(--transition);
    min-height: 44px;
}

.user-profile:hover {
    border-color: #40E0FF;
    background: rgba(64, 224, 255, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cyan-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #E9EEF5;
    line-height: 1.2;
}

.verification-warning {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    color: #FFB74D;
    cursor: pointer;
}

.sign-out-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #9AA5B5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sign-out-btn:hover {
    color: #FF5252;
    background: rgba(255, 82, 82, 0.1);
}

/* Mobile menu button - HIDDEN ON DESKTOP (≥1024px), VISIBLE ONLY ON MOBILE/TABLET */
.mobile-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1E2630;
    border: 1px solid #273140;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #40E0FF;
    transition: var(--transition);
    flex-shrink: 0;
    cursor: pointer;
}

.mobile-menu-btn:hover { background: var(--cyan-gradient); color: #0B0D10; transform: translateY(-2px); border-color: transparent; }

/* Hide mobile menu button on desktop/laptop (1024px and above) */
@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Show mobile menu button only on tablets and below */
@media (max-width: 1023px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* Ko-fi Button */
.kofi-link {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1E2630;
    border: 1px solid #273140;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}
.kofi-link:hover { transform: translateY(-3px) scale(1.05); border-color: #40E0FF; background: var(--cyan-gradient); box-shadow: 0 5px 20px rgba(64, 224, 255, 0.4); }
.kofi-link .coffee-cup { position: relative; width: 20px; height: 20px; display: flex; justify-content: center; align-items: center; }
.kofi-link .cup-body { position: relative; width: 16px; height: 14px; background: linear-gradient(135deg, #FFD700, #FFA500); border-radius: 0 0 8px 8px; animation: cupFill 2s ease-in-out infinite alternate; }
.kofi-link .cup-body::before { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 10px; background: linear-gradient(135deg, #FFE55C, #FFB347); border-radius: 0 0 6px 6px; opacity: 0.8; }
.kofi-link .cup-handle { position: absolute; top: 2px; right: -4px; width: 4px; height: 7px; border: 2px solid #FFD700; border-left: none; border-radius: 0 4px 4px 0; opacity: 0.8; }
.kofi-link .coffee-liquid { position: absolute; top: -2px; left: 2px; width: 12px; height: 3px; background: linear-gradient(90deg, #8B4513, #A0522D); border-radius: 2px; animation: liquidWave 2s ease-in-out infinite; }
.kofi-link .coffee-steam { position: absolute; top: -8px; left: 4px; display: flex; gap: 2px; opacity: 0; transition: opacity 0.3s ease; }
.kofi-link:hover .coffee-steam { opacity: 1; }
.kofi-link .coffee-steam span { width: 2px; height: 8px; background: linear-gradient(to top, rgba(255,255,255,0.8), transparent); border-radius: 1px; animation: steam 1.5s ease-in-out infinite; }
.kofi-link .coffee-steam span:nth-child(1) { animation-delay: 0s; }
.kofi-link .coffee-steam span:nth-child(2) { animation-delay: 0.3s; }
.kofi-link .coffee-steam span:nth-child(3) { animation-delay: 0.6s; }
.kofi-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--cyan-gradient);
    color: #0B0D10;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}
.kofi-link:hover .kofi-tooltip { opacity: 1; visibility: visible; bottom: -40px; transform: translateX(-50%) scale(1); }
@keyframes cupFill { 0% { transform: scaleY(1); } 100% { transform: scaleY(1.05); } }
@keyframes liquidWave { 0%,100% { transform: translateX(0) scaleX(1); } 25% { transform: translateX(1px) scaleX(1.05); } 75% { transform: translateX(-1px) scaleX(0.95); } }
@keyframes steam { 0% { transform: translateY(0) scaleX(1); opacity: 0.8; } 50% { transform: translateY(-5px) scaleX(1.5); opacity: 0.4; } 100% { transform: translateY(-10px) scaleX(2); opacity: 0; } }

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #151A21;
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    border-left: 1px solid #273140;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.mobile-menu.active { right: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-menu-close { width: 40px; height: 40px; border-radius: 50%; background: #1E2630; border: 1px solid #273140; display: flex; align-items: center; justify-content: center; color: #40E0FF; cursor: pointer; }
.mobile-menu-close:hover { background: var(--cyan-gradient); color: #0B0D10; transform: rotate(90deg); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #9AA5B5;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: var(--transition);
}
.mobile-nav-link i { width: 20px; color: #40E0FF; }
.mobile-nav-link:hover { background: rgba(64, 224, 255, 0.1); color: #40E0FF; transform: translateX(5px); }
.mobile-nav-link.active { background: rgba(64, 224, 255, 0.15); color: #40E0FF; font-weight: 600; }
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Breakpoints - Mobile adjustments */
@media (max-width: 768px) {
    .favorites-btn { padding: 6px 12px; min-height: 40px; font-size: 0.75rem; }
    .favorites-btn .favorites-text { display: none; }
    .favorites-btn .favorites-count { min-width: 20px; padding: 1px 5px; }
    .auth-btn { padding: 6px 14px; min-height: 40px; font-size: 0.75rem; }
    .auth-btn span { display: inline; }
    .user-profile { min-height: 40px; padding: 3px 3px 3px 10px; }
    .user-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
    .sign-out-btn { width: 32px; height: 32px; }
    .kofi-link { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .auth-btn span { display: none; }
    .auth-btn i { margin: 0; font-size: 1rem; }
    .auth-btn { padding: 6px 12px; }
    .favorites-btn { padding: 6px 10px; }
    .user-name { display: none; }
    .user-profile { padding: 3px 3px 3px 3px; }
}

/* Breadcrumb */
.breadcrumb {
    background: #151A21;
    padding: 12px 24px;
    border-bottom: 1px solid #273140;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: nowrap;
    color: #9AA5B5;
}
.breadcrumb a { color: #40E0FF; text-decoration: none; font-weight: 500; }
.breadcrumb span { color: #6B7A8F; margin: 0 8px; }
.breadcrumb .current { color: #E9EEF5; font-weight: 600; }

/* Tool Header */
.tool-header {
    padding: 40px 24px;
    background: var(--cyan-gradient);
    border-bottom: 1px solid #273140;
    color: #0B0D10;
    text-align: center;
}
.tool-header h1 { font-size: 2.5rem; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -1px; color: #0B0D10; margin-bottom: 8px; }
.text-gradient { color: white; font-weight: 800; }
.tool-header h2 { font-size: 1.2rem; font-weight: 500; color: rgba(11, 13, 16, 0.8); margin-bottom: 16px; }
.tool-header p { color: rgba(11, 13, 16, 0.7); font-size: 1rem; max-width: 600px; margin: 0 auto; }
@media (max-width: 768px) { .tool-header h1 { font-size: 1.8rem; } .tool-header h2 { font-size: 1rem; } }

.main-content { padding: 24px; max-width: 1400px; margin: 0 auto; width: 100%; }
.input-area { background: #151A21; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); border: 1px solid #273140; margin-bottom: 24px; }
.input-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #E9EEF5; font-weight: 600; font-size: 0.9rem; }
.char-count { color: #40E0FF; font-size: 0.8rem; background: rgba(64, 224, 255, 0.1); padding: 4px 10px; border-radius: 20px; }
textarea {
    width: 100%;
    height: 100px;
    padding: 16px;
    border: 2px solid #273140;
    border-radius: var(--radius-md);
    font-size: 1rem;
    resize: none;
    margin-bottom: 16px;
    background: #1E2630;
    color: #E9EEF5;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: var(--transition);
}
textarea:focus { outline: none; border-color: #40E0FF; box-shadow: 0 0 0 3px rgba(64, 224, 255, 0.2); }
.action-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 120px;
    min-height: 48px;
}
.btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s ease; }
.btn:hover::before { left: 100%; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cyan-gradient); color: #0B0D10; box-shadow: 0 4px 15px rgba(64, 224, 255, 0.3); }
.btn-clear { background: #1E2630; color: #E9EEF5; border: 1px solid #273140; }
.btn-clear:hover { background: rgba(64, 224, 255, 0.1); border-color: #40E0FF; }
.btn-copy-all { background: var(--cyan-gradient); color: #0B0D10; box-shadow: 0 4px 15px rgba(64, 224, 255, 0.3); }

.features-row { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
@media (min-width: 1024px) { .features-row { grid-template-columns: 1fr 1fr; } }

.preview-context { background: #151A21; border-radius: var(--radius-lg); padding: 20px; border: 1px solid #273140; }
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.preview-header h3 { font-size: 1rem; font-weight: 700; color: #E9EEF5; display: flex; align-items: center; gap: 8px; }
.preview-header h3 i { color: #40E0FF; }
.preview-platforms { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.platform-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 0 0 2px #273140;
    flex-shrink: 0;
}
.platform-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.5s ease; }
.platform-btn:hover::before { left: 100%; }
.platform-btn:hover { transform: translateY(-3px) scale(1.1); box-shadow: 0 0 0 2px #40E0FF, 0 8px 20px rgba(0,0,0,0.2); }
.platform-btn.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); background-size: 200% 200%; animation: gradientShift 5s ease infinite; }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.platform-btn.tiktok { background: #000000; color: #00f2fe; }
.platform-btn.tiktok:hover { background: linear-gradient(45deg, #00f2fe, #4facfe); color: white; }
.platform-btn.facebook { background: #1877f2; }
.platform-btn.twitter { background: #000000; color: white; }
.platform-btn.twitter:hover { background: #1DA1F2; }
.platform-btn.active { transform: scale(1.15); box-shadow: 0 0 0 4px #40E0FF, 0 0 0 2px white; }
.preview-mockup { background: #1E2630; border-radius: var(--radius-md); padding: 20px; border: 1px solid #273140; margin-top: 16px; }
.mockup-content { max-width: 400px; width: 100%; margin: 0 auto; }
.mockup-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mockup-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--cyan-gradient); display: flex; align-items: center; justify-content: center; color: #0B0D10; font-size: 1.2rem; flex-shrink: 0; }
.mockup-user h4 { font-size: 1rem; font-weight: 700; color: #E9EEF5; }
.mockup-user p { font-size: 0.8rem; color: #9AA5B5; }
.mockup-text { font-size: var(--preview-size, 1.4rem); padding: 20px; min-height: 120px; background: #151A21; border-radius: var(--radius-md); border: 1px solid #273140; color: #E9EEF5; font-family: 'JetBrains Mono', monospace; text-align: center; display: flex; align-items: center; justify-content: center; word-break: break-word; }
.preview-controls { display: flex; align-items: center; gap: 12px; background: #1E2630; border-radius: 40px; padding: 12px 16px; margin-top: 16px; flex-wrap: wrap; }
.preview-controls label { font-size: 0.85rem; color: #9AA5B5; display: flex; align-items: center; gap: 6px; }
.preview-controls input[type="range"] { flex: 1; height: 4px; background: #273140; border-radius: 2px; -webkit-appearance: none; appearance: none; }
.preview-controls input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: #40E0FF; border: 2px solid white; border-radius: 50%; cursor: pointer; }
.preview-controls span { min-width: 50px; text-align: center; font-size: 0.85rem; color: #40E0FF; font-family: 'JetBrains Mono', monospace; }
.preview-copy-btn { padding: 8px 16px; border: none; border-radius: 30px; font-size: 0.8rem; font-weight: 600; cursor: pointer; background: var(--cyan-gradient); color: #0B0D10; display: flex; align-items: center; gap: 6px; transition: var(--transition); min-height: 40px; }
.preview-copy-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(64, 224, 255, 0.3); }

/* Decorative Section */
.decorative-section { background: #151A21; border-radius: var(--radius-lg); padding: 20px; border: 1px solid #273140; width: 100%; overflow: hidden; }
.decorative-header { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; width: 100%; }
@media (min-width: 480px) { .decorative-header { flex-direction: row; justify-content: space-between; align-items: center; } }
.decorative-header h3 { font-size: 1rem; font-weight: 700; color: #E9EEF5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.decorative-header h3 i { color: #40E0FF; }
.decorative-header h3 span { font-size: 0.7rem; background: rgba(64, 224, 255, 0.1); padding: 4px 10px; border-radius: 20px; color: #40E0FF; }
.clear-decorations { padding: 12px 20px; border: none; border-radius: 40px; font-size: 0.85rem; font-weight: 600; cursor: pointer; background: var(--cyan-gradient); color: #0B0D10; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%; border: 1px solid transparent; }
.clear-decorations:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(64, 224, 255, 0.3); }
@media (min-width: 480px) { .clear-decorations { width: auto; min-width: 160px; } }
.decoration-search-container { position: relative; margin-bottom: 16px; width: 100%; }
.decoration-search { width: 100%; padding: 14px 45px 14px 16px; border: 2px solid #273140; border-radius: 40px; font-size: 0.95rem; transition: var(--transition); background: #1E2630; color: #E9EEF5; }
.decoration-search:focus { outline: none; border-color: #40E0FF; box-shadow: 0 0 0 3px rgba(64, 224, 255, 0.2); }
.clear-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--cyan-gradient);
    color: #0B0D10;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}
.clear-search-btn.visible { display: flex !important; }
.recent-decorations { margin-bottom: 16px; padding: 16px; background: rgba(64, 224, 255, 0.05); border-radius: var(--radius-md); border: 1px solid #273140; width: 100%; }
.recent-decorations h4 { font-size: 0.85rem; color: #40E0FF; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.recent-list { display: flex; gap: 8px; flex-wrap: wrap; }
.recent-item { padding: 8px 16px; background: #1E2630; border: 1px solid #273140; border-radius: 30px; font-size: 0.75rem; cursor: pointer; transition: var(--transition); color: #9AA5B5; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
.recent-item:hover { background: #40E0FF; color: #0B0D10; border-color: #40E0FF; transform: translateY(-2px); }
.decorative-carousel-container { position: relative; width: 100%; margin: 8px 0; overflow: hidden; }
.decorative-carousel { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; padding: 8px 45px 16px 45px; scrollbar-width: thin; scrollbar-color: #40E0FF #273140; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; width: 100%; }
.decorative-carousel::-webkit-scrollbar { height: 4px; }
.decorative-carousel::-webkit-scrollbar-track { background: #273140; border-radius: 10px; }
.decorative-carousel::-webkit-scrollbar-thumb { background: #40E0FF; border-radius: 10px; }
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cyan-gradient);
    border: 2px solid #0B0D10;
    color: #0B0D10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    opacity: 0.9;
}
.carousel-arrow.hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.carousel-arrow:hover { transform: translateY(-50%) scale(1.1); box-shadow: 0 6px 15px rgba(64, 224, 255, 0.4); }
.carousel-arrow.left { left: 2px; }
.carousel-arrow.right { right: 2px; }
@media (min-width: 768px) { .carousel-arrow.left { left: 5px; } .carousel-arrow.right { right: 5px; } }
.decorative-item {
    min-width: 95px;
    max-width: 95px;
    padding: 12px 4px;
    background: #1E2630;
    border-radius: var(--radius-md);
    border: 1px solid #273140;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    scroll-snap-align: start;
}
.decorative-item::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(64,224,255,0.2), transparent); transition: left 0.5s ease; pointer-events: none; }
.decorative-item:hover::before { left: 100%; }
.decorative-item:hover { border-color: #40E0FF; transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 20px rgba(64, 224, 255, 0.2); }
.decorative-item.hidden { display: none; }
.decorative-preview { font-size: 0.85rem; line-height: 1.3; margin-bottom: 6px; color: #40E0FF; font-family: 'Courier New', monospace; text-align: center; word-break: break-word; }
.decorative-name { font-size: 0.55rem; color: #9AA5B5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; text-transform: uppercase; }
.decorative-item.active-decoration { background: var(--cyan-gradient); border-color: white; transform: translateY(-4px); box-shadow: 0 0 0 2px white, 0 8px 20px rgba(64, 224, 255, 0.4); }
.decorative-item.active-decoration .decorative-preview,
.decorative-item.active-decoration .decorative-name { color: #0B0D10; }

/* Style Categories */
.style-categories { display: flex; gap: 8px; margin: 24px 0; flex-wrap: wrap; justify-content: center; }
.category-pill {
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: #1E2630;
    border: 1px solid #273140;
    color: #9AA5B5;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.category-pill::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(64,224,255,0.2), transparent); transition: left 0.5s ease; }
.category-pill:hover::before { left: 100%; }
.category-pill:hover { border-color: #40E0FF; color: #40E0FF; transform: translateY(-2px); }
.category-pill.active { background: var(--cyan-gradient); border-color: transparent; color: #0B0D10; box-shadow: 0 4px 12px rgba(64, 224, 255, 0.3); }

.section-header { margin: 24px 0 16px; }
.section-header h2 { font-size: 1.5rem; font-weight: 800; color: #E9EEF5; }
.section-header p { color: #9AA5B5; font-size: 0.85rem; }

.font-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 16px 0; }
@media (min-width: 480px) { .font-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .font-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.font-card { background: #151A21; border-radius: var(--radius-lg); padding: 16px; border: 1px solid #273140; transition: all 0.3s ease; display: flex; flex-direction: column; position: relative; }
.font-card:hover { transform: translateY(-4px); border-color: #40E0FF; box-shadow: 0 8px 24px rgba(64, 224, 255, 0.2); }
.font-preview { font-size: 1.4rem; padding: 20px; background: #1E2630; border-radius: var(--radius-md); margin-bottom: 12px; word-break: break-word; min-height: 100px; display: flex; align-items: center; justify-content: center; border: 1px solid #273140; color: #E9EEF5; font-family: monospace; text-align: center; transition: color 0.2s ease; }
.font-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.font-name { font-weight: 700; color: #E9EEF5; font-size: 0.9rem; }
.font-category { font-size: 0.6rem; padding: 4px 10px; background: rgba(64, 224, 255, 0.1); color: #40E0FF; border-radius: 30px; text-transform: uppercase; font-weight: 600; border: 1px solid #273140; }
.font-actions { display: flex; gap: 8px; width: 100%; }
.copy-btn {
    flex: 2;
    padding: 10px 12px;
    background: var(--cyan-gradient);
    border: none;
    border-radius: 40px;
    color: #0B0D10;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}
.copy-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s ease; }
.copy-btn:hover::before { left: 100%; }
.copy-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(64, 224, 255, 0.4); }
.copy-btn.copied { background: #4CAF50; color: white; }
.favorite-btn {
    width: 44px;
    height: 44px;
    background: #1E2630;
    border: 1px solid #273140;
    border-radius: 40px;
    color: #9AA5B5;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.favorite-btn:hover { border-color: #40E0FF; color: #40E0FF; transform: translateY(-2px); }
.favorite-btn.active { background: var(--cyan-gradient); border-color: transparent; color: #0B0D10; }
.color-picker-btn {
    width: 44px;
    height: 44px;
    background: #1E2630;
    border: 1px solid #273140;
    border-radius: 40px;
    color: #9AA5B5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}
.color-picker-btn:hover { border-color: #40E0FF; color: #40E0FF; transform: translateY(-2px); }
.color-picker-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: #1E2630;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    padding: 16px;
    z-index: 999999;
    border: 2px solid #40E0FF;
    width: 200px;
}
.color-picker-popup.show { display: block; }
.color-picker-popup::after { content: ''; position: absolute; bottom: -8px; right: 15px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid #40E0FF; }
.color-picker-popup input[type="color"] { width: 100%; height: 40px; border: 2px solid #273140; border-radius: 6px; cursor: pointer; margin-bottom: 12px; background: #0B0D10; }
.color-presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.color-preset { width: 28px; height: 28px; border-radius: 50%; border: 2px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.2); cursor: pointer; transition: transform 0.2s ease; margin: 0 auto; }
.color-preset:hover { transform: scale(1.15); }
.color-picker-popup button { width: 100%; padding: 10px; border-radius: 30px; border: none; background: var(--cyan-gradient); color: #0B0D10; font-size: 0.7rem; font-weight: 600; cursor: pointer; }

.font-card-tip {
    background: var(--cyan-gradient);
    border: 1px solid #40E0FF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #0B0D10;
    text-align: center;
    padding: 20px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}
.font-card-tip::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s ease; }
.font-card-tip:hover::before { left: 100%; }
.font-card-tip i { font-size: 2rem; margin-bottom: 12px; }
.font-card-tip h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.font-card-tip p { font-size: 0.8rem; color: rgba(11, 13, 16, 0.8); margin-bottom: 12px; }
.tip-badge { background: white; padding: 4px 12px; border-radius: 30px; font-size: 0.65rem; font-weight: 600; color: #40E0FF; border: 1px solid #40E0FF; }

.unicode-info { background: #151A21; border-radius: var(--radius-lg); padding: 24px; border: 1px solid #273140; margin: 30px 0 40px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
@media (min-width: 768px) { .unicode-info { flex-direction: row; padding: 28px; text-align: left; align-items: center; } }
.unicode-icon { width: 56px; height: 56px; background: var(--cyan-gradient); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #0B0D10; font-size: 1.5rem; flex-shrink: 0; }
.unicode-content { flex: 1; }
.unicode-content h3 { font-size: 1.3rem; font-weight: 700; color: #E9EEF5; margin-bottom: 8px; }
.unicode-content p { color: #9AA5B5; font-size: 0.9rem; line-height: 1.6; }
.unicode-content strong { color: #40E0FF; }

.fab-copy-all { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: none; }
@media (max-width: 768px) { .fab-copy-all { display: block; } }
.fab-button { width: 56px; height: 56px; border-radius: 50%; background: var(--cyan-gradient); border: none; color: #0B0D10; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 15px rgba(64, 224, 255, 0.4); transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.fab-button:hover { transform: scale(1.1) translateY(-4px); box-shadow: 0 8px 25px rgba(64, 224, 255, 0.6); }

/* Favorites Sidebar */
.favorites-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #151A21;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 10000;
    padding: 24px;
    overflow-y: auto;
    border-left: 1px solid #273140;
}
.favorites-sidebar.open { right: 0; }
.favorites-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #273140; }
.favorites-header h3 { font-size: 1.2rem; font-weight: 700; color: #E9EEF5; display: flex; align-items: center; gap: 8px; }
.favorites-header h3 i { color: #40E0FF; }
.close-favorites { width: 40px; height: 40px; border-radius: 50%; background: #1E2630; border: 1px solid #273140; color: #9AA5B5; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.close-favorites:hover { background: var(--cyan-gradient); color: #0B0D10; transform: rotate(90deg); }
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 9999; display: none; }
.sidebar-overlay.active { display: block; }
.favorites-list { display: flex; flex-direction: column; gap: 16px; }
.favorite-item { background: #1E2630; border-radius: var(--radius-md); padding: 16px; border: 1px solid #273140; transition: var(--transition); }
.favorite-item:hover { border-color: #40E0FF; transform: translateX(-4px); }
.favorite-preview { font-size: 1rem; margin-bottom: 12px; padding: 12px; background: #151A21; border-radius: var(--radius-sm); border: 1px solid #273140; word-break: break-word; font-family: monospace; color: #E9EEF5; }
.favorite-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.favorite-name { font-weight: 700; color: #E9EEF5; font-size: 0.9rem; }
.favorite-category { font-size: 0.6rem; padding: 4px 10px; background: rgba(64,224,255,0.1); color: #40E0FF; border-radius: 30px; }
.favorite-actions { display: flex; gap: 8px; }
.favorite-copy-btn { flex: 1; padding: 10px; background: var(--cyan-gradient); border: none; border-radius: 30px; color: #0B0D10; font-size: 0.7rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
.favorite-remove-btn { width: 44px; padding: 10px; background: #1E2630; border: 1px solid #273140; border-radius: 30px; color: #9AA5B5; cursor: pointer; }
.favorite-remove-btn:hover { border-color: #FF5252; color: #FF5252; }
.no-favorites { color: #6B7A8F; text-align: center; padding: 40px 0; background: #1E2630; border-radius: var(--radius-md); border: 2px dashed #273140; }
.export-favorites-btn { width: 100%; padding: 14px; margin-top: 20px; background: var(--cyan-gradient); color: #0B0D10; border: none; border-radius: 40px; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--cyan-gradient);
    color: #0B0D10;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
    animation: slideUp 0.3s ease forwards;
    z-index: 10001;
    white-space: nowrap;
}
@keyframes slideUp { to { transform: translateX(-50%) translateY(0); } }
.toast.show { display: block; }

/* Tutorial Section */
.tutorial-wrapper {
    margin: 40px 0;
    background: #151A21;
    border-radius: var(--radius-lg);
    border: 1px solid #273140;
    overflow: hidden;
}
.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #1E2630;
    cursor: pointer;
    transition: var(--transition);
}
.tutorial-header:hover { background: rgba(64, 224, 255, 0.05); }
.tutorial-title { font-size: 1.2rem; font-weight: 700; color: #40E0FF; display: flex; align-items: center; gap: 12px; }
.tutorial-toggle { background: none; border: none; color: #9AA5B5; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; transition: var(--transition); }
.tutorial-toggle:hover { background: rgba(64, 224, 255, 0.1); color: #40E0FF; }
.tutorial-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
}
.tutorial-content.open { max-height: 2000px; }
.tutorial-grid { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 24px; }
@media (min-width: 768px) { .tutorial-grid { grid-template-columns: repeat(2, 1fr); } }
.tutorial-card {
    background: #1E2630;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid #273140;
    position: relative;
    transition: var(--transition);
}
.tutorial-card:hover { border-color: #40E0FF; transform: translateY(-4px); }
.tutorial-step {
    position: absolute;
    top: -12px;
    left: 20px;
    width: 28px;
    height: 28px;
    background: var(--cyan-gradient);
    color: #0B0D10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}
.tutorial-icon { font-size: 1.8rem; color: #40E0FF; margin-bottom: 12px; display: inline-block; }
.tutorial-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: #E9EEF5; }
.tutorial-card p { color: #9AA5B5; font-size: 0.85rem; line-height: 1.5; margin-bottom: 12px; }
.tutorial-tip { background: rgba(64, 224, 255, 0.08); padding: 8px 12px; border-radius: 20px; font-size: 0.7rem; color: #40E0FF; display: flex; align-items: center; gap: 6px; }

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .btn { min-width: 100px; font-size: 0.8rem; }
    .font-grid { grid-template-columns: 1fr; }
    .platform-btn { width: 44px; height: 44px; }
    .decorative-item { min-width: 80px; max-width: 80px; min-height: 90px; }
    .decorative-preview { font-size: 0.7rem; }
    .category-pill { padding: 8px 16px; font-size: 0.7rem; }
    .toast { width: 90%; max-width: 300px; white-space: normal; text-align: center; font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .tool-header h1 { font-size: 1.5rem; }
    .preview-header { flex-direction: column; align-items: flex-start; }
    .decorative-header { flex-direction: column; align-items: flex-start; }
    .clear-decorations { width: 100%; }
    .decorative-item { min-width: 70px; max-width: 70px; min-height: 80px; }
    .decorative-preview { font-size: 0.6rem; }
    .decorative-name { font-size: 0.45rem; }
    .font-preview { font-size: 1.2rem; min-height: 80px; }
    .tutorial-title { font-size: 0.9rem; }
}
@media (hover: none) and (pointer: coarse) {
    .btn:hover, .category-pill:hover, .decorative-item:hover, .platform-btn:hover,
    .copy-btn:hover, .favorite-btn:hover, .color-picker-btn:hover, .clear-decorations:hover { transform: none; }
    .btn:active, .category-pill:active, .decorative-item:active, .platform-btn:active,
    .copy-btn:active, .favorite-btn:active, .color-picker-btn:active { transform: scale(0.97); opacity: 0.8; }
}
@supports (padding: max(0px)) {
    .header-container, .main-content { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .favorites-sidebar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}