/* === FONTS & ROOT === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #6C63FF;
    --primary-light: #8B83FF;
    --primary-dark: #4F46E5;
    --secondary: #3ECFCF;
    --accent: #FF6584;
    --bg-dark: #0A0B1E;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.08);
    --border: rgba(255,255,255,0.08);
    --border-glow: rgba(108,99,255,0.4);
    --text-primary: #F0F0FF;
    --text-secondary: rgba(240,240,255,0.6);
    --text-muted: rgba(240,240,255,0.35);
    --gradient-main: linear-gradient(135deg, #6C63FF 0%, #3ECFCF 100%);
    --gradient-hero: linear-gradient(135deg, #0A0B1E 0%, #12153A 50%, #0D1A3A 100%);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(108,99,255,0.2);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
}

/* === BACKGROUND PARTICLES === */
.bg-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    animation: float linear infinite;
    opacity: 0.15;
}
@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* === GLASS CARD === */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* === CONTAINER === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0;
    background: rgba(10, 11, 30, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.logo-icon svg { width: 100%; height: 100%; }
.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    border-right: 1px solid var(--border);
    padding-right: 12px;
    margin-right: 4px;
}
.header-nav {
    display: flex;
    gap: 8px;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(108,99,255,0.15);
}
.header-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(62,207,207,0.1);
    border: 1px solid rgba(62,207,207,0.3);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
}
.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
/* Creator badge in header */
.header-creator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 6px 14px;
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.3);
    border-radius: var(--radius-xs);
}
.creator-by {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}
.creator-name {
    font-size: 14px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(62,207,207,0.1) 0%, transparent 70%);
    bottom: 10%; right: 10%;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108,99,255,0.15);
    border: 1px solid rgba(108,99,255,0.4);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 32px;
    animation: fadeInDown 0.6s ease;
}
.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease 0.1s both;
}
.gradient-text {
    display: block;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease 0.3s both;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    animation: bounce 2s infinite;
}
.scroll-arrow { font-size: 20px; margin-top: 4px; }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* === SECTIONS === */
.translator-section, .dictionary-section, .about-section, .phrases-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 12px;
}
.section-title p {
    color: var(--text-secondary);
    font-size: 17px;
}

/* === TRANSLATOR GRID === */
.translator-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .translator-grid { grid-template-columns: 1fr; }
}

/* === INPUT PANEL === */
.input-panel {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.panel-icon { font-size: 24px; }
.panel-header h3 {
    font-size: 20px;
    font-weight: 700;
}
.input-area {
    position: relative;
}
.input-area textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    padding: 16px;
    resize: none;
    transition: var(--transition);
    direction: rtl;
    outline: none;
}
.input-area textarea:focus {
    border-color: var(--primary);
    background: rgba(108,99,255,0.08);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
.input-area textarea::placeholder { color: var(--text-muted); }
.char-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Quick Words */
.quick-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}
.word-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.word-chip {
    background: rgba(108,99,255,0.12);
    border: 1px solid rgba(108,99,255,0.25);
    color: var(--primary-light);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}
.word-chip:hover {
    background: rgba(108,99,255,0.25);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Sentence Builder */
.sentence-builder {
    background: rgba(108,99,255,0.05);
    border: 1px dashed rgba(108,99,255,0.3);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sb-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sb-icon { font-size: 18px; }
.sb-title { font-size: 15px; font-weight: 700; color: var(--primary-light); }
.sb-hint { font-size: 12px; color: var(--text-muted); margin-right: auto; }

.sb-word-input-row {
    display: flex;
    gap: 8px;
}
.sb-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.sb-input:focus {
    border-color: var(--primary);
    background: rgba(108,99,255,0.08);
}
.sb-add-btn {
    background: rgba(108,99,255,0.15);
    border: 1px solid rgba(108,99,255,0.3);
    color: var(--primary-light);
    border-radius: var(--radius-xs);
    width: 42px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}
.sb-add-btn:hover {
    background: var(--primary);
    color: white;
}

.sb-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 42px;
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-xs);
}
.sb-token {
    background: var(--gradient-main);
    color: white;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeInDown 0.3s ease;
}
.sb-token-remove {
    background: rgba(0,0,0,0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
}
.sb-token-remove:hover { background: rgba(0,0,0,0.4); }

.sb-actions {
    display: flex;
    gap: 8px;
}
.sb-play-btn, .sb-clear-btn, .sb-send-btn {
    flex: 1;
    padding: 8px;
    border-radius: var(--radius-xs);
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.sb-play-btn {
    background: rgba(74,222,128,0.15);
    color: #4ADE80;
    border: 1px solid rgba(74,222,128,0.3);
}
.sb-play-btn:hover { background: rgba(74,222,128,0.25); }

.sb-clear-btn {
    background: rgba(255,101,132,0.15);
    color: #FF6584;
    border: 1px solid rgba(255,101,132,0.3);
}
.sb-clear-btn:hover { background: rgba(255,101,132,0.25); }

.sb-send-btn {
    background: rgba(108,99,255,0.15);
    color: var(--primary-light);
    border: 1px solid rgba(108,99,255,0.3);
}
.sb-send-btn:hover { background: rgba(108,99,255,0.25); }

/* Buttons */
.input-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.input-actions .btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 120px;
}
.btn-stop {
    background: rgba(255,101,132,0.12) !important;
    border-color: rgba(255,101,132,0.35) !important;
    color: #FF8A9B !important;
}
.btn-stop:hover {
    background: rgba(255,101,132,0.22) !important;
    color: #fff !important;
}

.kbd-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: -8px;
}
.kbd-hint kbd {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 2px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;

    border-radius: 100px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    flex: 1;
    justify-content: center;
}
.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108,99,255,0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}
.btn-icon { font-size: 16px; }
.btn.playing .btn-icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Speed Control */
.speed-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.speed-control label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}
.speed-buttons {
    display: flex;
    gap: 8px;
}
.speed-btn {
    flex: 1;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.speed-btn.active, .speed-btn:hover {
    background: rgba(108,99,255,0.2);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* Avatar Selector */
.avatar-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.avatar-selector label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}
.avatar-list { display: flex; gap: 8px; }
.av-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.av-btn span:first-child { font-size: 22px; }
.av-btn.active, .av-btn:hover {
    background: rgba(62,207,207,0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

/* === AVATAR PANEL === */
.avatar-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.avatar-wrapper {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.avatar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.avatar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition);
}
.status-dot.active {
    background: #4ADE80;
    box-shadow: 0 0 8px #4ADE80;
    animation: pulse 1.5s infinite;
}
.avatar-word-display {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(108,99,255,0.12);
    padding: 6px 16px;
    border-radius: 100px;
    min-width: 100px;
    text-align: center;
}

/* CWASA Avatar Override */
.CWASAAvatar {
    width: 100% !important;
    height: 500px !important;
    min-height: 400px;
    background: linear-gradient(180deg, #0D1033 0%, #060A20 100%) !important;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.CWASAAvMenu {
    display: flex;
    justify-content: center;
}

.avatar-footer {
    display: flex;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* Translation Info */
.translation-info {
    padding: 20px 24px;
}
.translation-info h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}
.translated-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.word-tag {
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.3);
    color: #4ADE80;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}
.word-tag.not-found {
    background: rgba(255,101,132,0.1);
    border-color: rgba(255,101,132,0.3);
    color: #FF6584;
}
.not-found p {
    font-size: 12px;
    color: var(--accent);
    margin-top: 8px;
}

/* === DICTIONARY SECTION === */
.dictionary-section {
    background: linear-gradient(180deg, transparent 0%, rgba(108,99,255,0.03) 50%, transparent 100%);
}
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.cat-tab {
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.cat-tab.active, .cat-tab:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(108,99,255,0.3);
}
.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.dict-word {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.dict-word:hover {
    background: rgba(108,99,255,0.15);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108,99,255,0.2);
}
.dict-word:active { transform: translateY(0); }

.dict-search-wrap {
    max-width: 480px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.dict-search-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}
.dict-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
.dict-search-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.dict-word-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}
.dict-word-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(108,99,255,0.15);
}
.dict-word-card .dict-word {
    flex: 1;
    border: none;
    border-radius: 0;
    margin: 0;
}
.dict-fav-btn {
    flex-shrink: 0;
    width: 44px;
    border: none;
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}
.dict-fav-btn:hover {
    color: #FBBF24;
    background: rgba(251,191,36,0.1);
}
.dict-fav-btn.active {
    color: #FBBF24;
    background: rgba(251,191,36,0.15);
}
.dict-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}

/* === ABOUT SECTION === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
}
.about-content {
    padding: 40px;
}
.about-icon { font-size: 40px; margin-bottom: 20px; }
.about-content h2 { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.about-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-badge {
    background: rgba(62,207,207,0.1);
    border: 1px solid rgba(62,207,207,0.3);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
}
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.feature-card {
    padding: 24px;
    text-align: center;
}
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* === FOOTER === */
.site-footer {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: center;
    text-align: center;
}
@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; }
}
.footer-logo .logo-text { font-size: 24px; font-weight: 800; }
.footer-logo p { color: var(--text-muted); font-size: 13px; margin-top: 6px; }
.footer-info p { color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.footer-info strong { color: var(--text-secondary); }
.footer-copy p { color: var(--text-muted); font-size: 13px; }

/* Footer Creator Card */
.footer-creator-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(108,99,255,0.08);
    border: 1px solid rgba(108,99,255,0.2);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
}
.footer-creator-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(108,99,255,0.4);
}
.footer-creator-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}
.footer-creator-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}
.footer-creator-name {
    font-size: 17px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.6s ease both;
}

/* === TOAST NOTIFICATION === */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(20,22,50,0.95);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
    backdrop-filter: blur(20px);
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* === PHRASES SECTION === */
.phrases-section {
    background: linear-gradient(180deg, transparent 0%, rgba(62,207,207,0.03) 50%, transparent 100%);
}
.phrases-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.phrase-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.phrase-tab .tab-icon { font-size: 16px; }
.phrase-tab.active, .phrase-tab:hover {
    background: linear-gradient(135deg, rgba(62,207,207,0.15), rgba(108,99,255,0.15));
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(62,207,207,0.2);
}
.phrases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.phrase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
}
.phrase-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0;
    transition: var(--transition);
}
.phrase-card:hover::before { opacity: 1; }
.phrase-card:hover {
    background: rgba(108,99,255,0.08);
    border-color: rgba(108,99,255,0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.phrase-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108,99,255,0.1);
    border-radius: var(--radius-xs);
}
.phrase-content { flex: 1; }
.phrase-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
    line-height: 1.5;
}
.phrase-play-hint {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.phrase-play-btn {
    margin-right: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-main);
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    box-shadow: 0 4px 12px rgba(108,99,255,0.4);
    transition: var(--transition);
}
.phrase-play-btn:hover { transform: scale(1.15); }

/* Phrases Toggle Button (inside input panel) */
.phrases-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(62,207,207,0.06);
    border: 1px dashed rgba(62,207,207,0.3);
    border-radius: var(--radius-sm);
    color: var(--secondary);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    justify-content: center;
}
.phrases-toggle-btn:hover {
    background: rgba(62,207,207,0.12);
    border-color: var(--secondary);
}
.toggle-arrow {
    margin-right: auto;
    transition: transform 0.3s ease;
    font-size: 12px;
}
.toggle-arrow.open { transform: rotate(180deg); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; row-gap: 10px; }
    .header-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        order: 3;
        width: 100%;
        gap: 6px;
        padding-top: 4px;
        border-top: 1px solid var(--border);
    }
    .nav-link { padding: 8px 12px; font-size: 13px; }
    .input-panel { padding: 20px; }
    .hero-stats { gap: 20px; }
    .stat-divider { display: none; }
    .CWASAAvatar { height: 350px !important; }
    .features-grid { grid-template-columns: 1fr; }
    .phrases-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .header-creator { display: none; }
}
