:root {
    --bg-color: #0f0f13;
    --card-bg: #1a1a20;
    --accent-color: #ff764c;
    --accent-hover: #ff0000;
    --accent-glow: rgba(255, 118, 76, 0.45);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: #27272a;
    --code-bg: #121215;
    --font-main: 'Outfit', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 118, 76, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 0, 0.25) 0%, transparent 40%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #ff764c 45%, #ff0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-section {
    background: rgba(26, 26, 32, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 118, 76, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

textarea {
    width: 100%;
    height: 150px;
    background: #0a0a0c;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1.05rem;
    line-height: 1.5;
    resize: none;
    transition: all 0.3s ease;
}

textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #0f0f13;
    box-shadow: 0 0 0 4px var(--accent-glow);
    transform: translateY(-2px);
}

button#generateBtn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

button#generateBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 118, 76, 0.4);
}

button#generateBtn:active {
    transform: translateY(0);
}

.output-section {
    background: rgba(26, 26, 32, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.output-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.output-header span {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.icon-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.code-container {
    padding: 1.5rem;
    background: var(--code-bg);
    overflow-x: auto;
}

pre {
    margin: 0;
}

code {
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: #e2e8f0;
    white-space: pre-wrap;
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ad-slot {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 118, 76, 0.6);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.back-button:hover {
    background: rgba(255, 118, 76, 0.15);
    border-color: rgba(255, 0, 0, 0.8);
    transform: translateY(-1px);
}

/* Loader */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading .btn-text {
    display: none;
}

.loading .loader {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .logo {
        font-size: 2.5rem;
    }

    .input-section {
        padding: 1.5rem;
    }

}

.logo {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #ff764c 45%, #ff0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-section {
    background: rgba(26, 26, 32, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 118, 76, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

textarea {
    width: 100%;
    height: 150px;
    background: #0a0a0c;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1.05rem;
    line-height: 1.5;
    resize: none;
    transition: all 0.3s ease;
}

textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #0f0f13;
    box-shadow: 0 0 0 4px var(--accent-glow);
    transform: translateY(-2px);
}

button#generateBtn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

button#generateBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 118, 76, 0.4);
}

button#generateBtn:active {
    transform: translateY(0);
}

.output-section {
    background: rgba(26, 26, 32, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.output-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.output-header span {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.icon-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.code-container {
    padding: 1.5rem;
    background: var(--code-bg);
    overflow-x: auto;
}

pre {
    margin: 0;
}

code {
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: #e2e8f0;
    white-space: pre-wrap;
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Loader */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading .btn-text {
    display: none;
}

.loading .loader {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .logo {
        font-size: 2.5rem;
    }

    .input-section {
        padding: 1.5rem;
    }

    textarea {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }

    .input-section {
        padding: 1rem;
    }

    button#generateBtn {
        font-size: 1rem;
    }
}

/* Navbar & Sidebar */
.navbar {
    margin-top: 1.4rem;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1200px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(255, 118, 76, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 118, 76, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-translate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-translate-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.nav-translate-btn svg {
    display: block;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 0;
    text-decoration: none;
}

.nav-coins {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 118, 76, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

button#generateBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 118, 76, 0.4);
}

button#generateBtn:active {
    transform: translateY(0);
}

.output-section {
    background: rgba(26, 26, 32, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.output-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.output-header span {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.icon-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.code-container {
    padding: 1.5rem;
    background: var(--code-bg);
    overflow-x: auto;
}

pre {
    margin: 0;
}

code {
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: #e2e8f0;
    white-space: pre-wrap;
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Loader */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading .btn-text {
    display: none;
}

.loading .loader {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .logo {
        font-size: 2.5rem;
    }

    .input-section {
        padding: 1.5rem;
    }

    textarea {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }

    .input-section {
        padding: 1rem;
    }

    button#generateBtn {
        font-size: 1rem;
    }
}

/* Navbar & Sidebar */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1200px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(255, 118, 76, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 118, 76, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 0;
}

.nav-coins {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 118, 76, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff764c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.coin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(26, 26, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 118, 76, 0.2);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 118, 76, 0.15);
    background: rgba(255, 0, 0, 0.05);
}

.logo-small {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #ff764c 45%, #ff0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.875rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:hover {
    background: rgba(255, 118, 76, 0.1);
    color: var(--text-main);
    transform: translateX(4px);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(255, 118, 76, 0.15) 0%, rgba(255, 0, 0, 0.08) 100%);
    color: var(--accent-color);
    box-shadow: inset 0 1px 3px rgba(255, 118, 76, 0.2);
}

.sidebar-link.active::before {
    transform: scaleY(1);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:hover svg {
    transform: scale(1.1);
}

.sidebar-link.active svg {
    color: var(--accent-color);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }

    .input-section {
        padding: 1rem;
    }

    button#generateBtn {
        font-size: 1rem;
    }
}

/* Navbar & Sidebar */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1200px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(255, 118, 76, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 118, 76, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 0;
}

.nav-coins {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 118, 76, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff764c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.coin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(26, 26, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 118, 76, 0.2);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 118, 76, 0.15);
    background: rgba(255, 0, 0, 0.05);
}

.logo-small {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #ff764c 45%, #ff0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.875rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:hover {
    background: rgba(255, 118, 76, 0.1);
    color: var(--text-main);
    transform: translateX(4px);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(255, 118, 76, 0.15) 0%, rgba(255, 0, 0, 0.08) 100%);
    color: var(--accent-color);
    box-shadow: inset 0 1px 3px rgba(255, 118, 76, 0.2);
}

.sidebar-link.active::before {
    transform: scaleY(1);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:hover svg {
    transform: scale(1.1);
}

.sidebar-link.active svg {
    color: var(--accent-color);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.main-content {
    width: 100%;
    padding-top: 8rem;
    display: flex;
    justify-content: center;
}

.main-content .container {
    padding-top: 0;
}

/* Settings Page Styles */
.settings-section {
    margin-bottom: 3rem;
}

.settings-card {
    background: rgba(26, 26, 32, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 118, 76, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-header svg {
    color: var(--accent-color);
    width: 28px;
    height: 28px;
}

.settings-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.settings-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    padding-left: 2.75rem;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 118, 76, 0.1), rgba(255, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-option:hover {
    border-color: rgba(255, 118, 76, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 118, 76, 0.2);
}

.language-option:hover::before {
    opacity: 1;
}

.language-option.active {
    border-color: var(--accent-color);
    background: rgba(255, 118, 76, 0.1);
    box-shadow: 0 4px 20px rgba(255, 118, 76, 0.3);
}

.language-option.active::before {
    opacity: 1;
}

.language-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.language-option:hover .language-radio {
    border-color: var(--accent-color);
}

.language-option.active .language-radio {
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 118, 76, 0.2);
}

.language-option.active .language-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.language-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1;
}

.language-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.language-option.active .language-name {
    color: var(--accent-color);
}

.language-native {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.save-notification {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.15));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    color: #86efac;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.save-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.save-notification svg {
    width: 20px;
    height: 20px;
    color: #86efac;
}

/* Responsive adjustments for settings */
@media (max-width: 768px) {
    .language-grid {
        grid-template-columns: 1fr;
    }

    .settings-card {
        padding: 1.5rem;
    }

    .settings-description {
        padding-left: 0;
    }
}
