:root {
    --bg-color: #FFFFFF;
    --soft-modern-bg: #f8fafc;
    --soft-modern-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --text-color: #1D1D1F;
    --text-modern: #334155;
    --text-secondary: #64748b;
    --accent-color: #0071E3;
    --accent-hover: #0077ED;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-bg-modern: rgba(255, 255, 255, 0.9);
    --border-color: #e2e8f0;
    --shadow-modern: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --header-height: 64px;
    --nav-height: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.non-home-page {
    background: var(--soft-modern-gradient);
    color: var(--text-modern);
}

.hidden { display: none !important; }

/* Header */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    height: var(--header-height); 
    background: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    display: flex; align-items: center; padding: 0 20px; z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.4s ease, border-color 0.4s ease;
}

body.non-home-page header {
    background: rgba(241, 245, 249, 0.8);
    border-bottom-color: rgba(0, 0, 0, 0.05);
    color: var(--text-modern);
}
.header-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.profile-preview { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.avatar-container { position: relative; width: 36px; height: 36px; }
.avatar-container img { width: 100%; height: 100%; border-radius: 50%; background: #fff; border: 1.5px solid var(--accent-color); }
.nav-button { cursor: pointer; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: background 0.2s; }
.nav-button:hover { background: rgba(255,255,255,0.1); }

/* Main Container */
main { padding-bottom: var(--nav-height); min-height: 100vh; }
.page { padding: calc(var(--header-height) + 20px) 20px 20px; }
#page-home { padding: 0; height: 100vh; position: relative; overflow: hidden; }

/* Home Screen Hero Background */
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; background: #000; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(0.8) contrast(1.1) saturate(1.2); transition: transform 0.5s ease; }

.home-overlay { position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 20px; pointer-events: none; }
.home-top, .home-center { pointer-events: auto; }
.home-top { position: relative; width: 100%; display: flex; justify-content: center; align-items: center; padding-top: 60px; }
.logo-wrapper { display: flex; align-items: center; gap: 20px; }
.logo-icon-box {
    width: 64px; height: 64px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 18px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.logo-icon-box i { width: 32px; height: 32px; color: #fff; }
.main-logo { font-family: 'Syne', sans-serif; font-size: 3.5rem; font-weight: 400; letter-spacing: -2px; color: rgba(255,255,255,0.6); text-shadow: 0 8px 24px rgba(0,0,0,0.4); margin: 0; line-height: 1; }
.main-logo span { color: #fff; font-weight: 800; }


.home-center { position: absolute; top: 55%; left: 50%; transform: translate(-50%, -50%); width: 100%; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.action-hub { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.login-btn { background: #0071E3; color: #fff; border: none; padding: 14px 50px; border-radius: 12px; font-size: 1rem; font-weight: 700; font-family: 'Syne', sans-serif; cursor: pointer; box-shadow: 0 4px 15px rgba(0,113,227,0.4); transition: all 0.2s; }
.login-btn:hover { background: #0077ED; transform: translateY(-2px); }
.btn-share { background: rgba(255,255,255,0.12); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 12px 35px; border-radius: 25px; font-weight: 600; font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all 0.3s; font-family: 'Outfit', sans-serif; }
.btn-share:hover { background: rgba(255,255,255,0.2); }
.feedback-container { margin-top: 5px; }
.feedback-link { color: #E5E5E7; text-decoration: none; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 8px; opacity: 0.9; transition: opacity 0.2s; font-family: 'Outfit', sans-serif; }
.feedback-link:hover { opacity: 1; color: #fff; }
.start-project-overlay {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    color: #fff;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 24px 12px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Outfit', sans-serif;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.category-btn:active {
    transform: scale(0.95);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.category-btn:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-color);
}

.category-btn span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.close-overlay:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}


/* Buttons */
.btn-primary { background-color: var(--accent-color); color: #fff; border: none; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.2s, transform 0.1s; }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background-color: #F5F5F7; color: var(--accent-color); border: 1px solid var(--border-color); padding: 10px 20px; border-radius: var(--radius); font-weight: 600; cursor: pointer; }
.btn-danger { background-color: #FF3B301a; color: #FF3B30; border: 1px solid #FF3B3033; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; cursor: pointer; }
.btn-premium { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; border: none; padding: 12px 20px; border-radius: var(--radius); font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3); }
.btn-ai { background: linear-gradient(135deg, #0071E3, #00D2FF); color: #fff; border: none; padding: 12px 20px; border-radius: var(--radius); font-weight: 600; }

/* Content Card */
.content-card { 
    background: var(--card-bg); 
    backdrop-filter: blur(10px); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius); 
    padding: 30px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
    margin-top: 10px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.non-home-page .content-card {
    background: var(--card-bg-modern);
    border-color: #f1f5f9;
    box-shadow: var(--shadow-modern);
}
h2 { margin-bottom: 20px; font-weight: 600; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 8px; }
.help-text { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-top: 6px; }
.help-text a { color: var(--accent-color); text-decoration: none; }
input[type="text"], select, textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 1rem; background: #fff; outline: none; transition: all 0.2s; }

input:focus, select:focus, textarea:focus { border-color: var(--accent-color); }

/* Bottom Nav */
#bottom-nav { 
    position: fixed; bottom: 0; left: 0; width: 100%; height: var(--nav-height); 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(25px); 
    border-top: 1px solid rgba(0,0,0,0.05); 
    display: flex; justify-content: space-around; align-items: center; 
    z-index: 1000; padding: 0 10px; 
    transition: background 0.4s ease;
}

body.non-home-page #bottom-nav {
    background: rgba(248, 250, 252, 0.9);
}
.nav-item { display: flex; flex-direction: column; align-items: center; background: none; border: none; color: #8E8E93; font-size: 0.65rem; cursor: pointer; transition: color 0.2s; width: 25%; font-weight: 500; font-family: 'Outfit', sans-serif; gap: 4px; }
.nav-item svg { stroke-width: 1.5; }
.nav-item.active { color: #0071E3; }
.nav-item span { text-transform: none; letter-spacing: 0; }

/* Shop and Settings */
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shop-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px 16px;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.shop-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}
.shop-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f5f5f7;
    padding: 4px;
    object-fit: contain;
}
.settings-item { width: 100%; text-align: left; padding: 16px; background: #fff; border: none; border-bottom: 1px solid var(--border-color); font-size: 1rem; cursor: pointer; }
.settings-item:last-child { border-bottom: none; }
.ad-placeholder { margin-top: 30px; padding: 40px; background: #f9f9f9; border: 2px dashed #ddd; border-radius: var(--radius); text-align: center; color: #999; }

/* Workspace */
.workspace-body { display: flex; flex-direction: column; gap: 20px; }
.title-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.title-input { flex: 1; font-size: 1.5rem; font-weight: 600; border: none; border-bottom: 2px solid var(--border-color); border-radius: 0; padding: 10px 0; background: transparent; }
.title-input:focus { border-bottom-color: var(--accent-color); }

.btn-youtube {
    background: #FF0000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}
.btn-youtube:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4);
}
.btn-youtube:active {
    transform: scale(0.95);
}
.btn-youtube i {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sub-form .row { display: flex; gap: 10px; }
.notepad-section textarea { height: 150px; font-family: inherit; resize: none; }
.ai-controls { display: flex; flex-direction: column; gap: 12px; }


/* Projects */
.projects-tile-view { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    margin-top: 20px; 
}
.project-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: grab;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.2s ease,
                opacity 0.2s ease,
                border-color 0.2s ease;
    user-select: none;
    position: relative;
    min-height: 140px;
}
.project-card:active { cursor: grabbing; }

.empty-slot {
    border: 2px dashed var(--border-color);
    background: rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.5;
}
.empty-slot:hover {
    background: rgba(0,0,0,0.04);
    border-color: var(--accent-color);
    opacity: 0.8;
}
.empty-slot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    pointer-events: none;
}
.empty-slot-content i {
    width: 32px;
    height: 32px;
}
.empty-slot-content span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card h4 { 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    font-weight: 700;
    margin-bottom: 2px;
}
.project-card small {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: capitalize;
}
.project-card-body { flex: 1; min-width: 0; }

/* Drag handle — grip icon shown on hover */
.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--border-color);
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
    cursor: grab;
    align-self: flex-start;
}
.project-card:hover .drag-handle { color: var(--text-secondary); }
.project-card:active .drag-handle { cursor: grabbing; transform: scale(1.15); }

/* Card being dragged — ghost effect */
.project-card.dragging {
    opacity: 0.3;
    transform: rotate(2deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
    z-index: 10;
}

/* Card under the dragged card — drop target highlight */
.project-card.drag-over {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
    transform: scale(1.03);
    background: rgba(0, 113, 227, 0.04);
}

.projects-list-view { display: flex; flex-direction: column; gap: 12px; }
.projects-list-view .project-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: auto;
}
.projects-list-view .drag-handle { align-self: center; }
.projects-list-view .empty-slot { padding: 20px; }

/* Delete Button */

/* Delete Button */
.btn-delete-small {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
    border: 1px solid rgba(255, 59, 48, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-delete-small:hover {
    background: #FF3B30;
    color: #fff;
    transform: scale(1.05);
}
.btn-delete-small svg {
    width: 18px;
    height: 18px;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

/* Dynamic Backgrounds */
.theme-automotive {
    background-image: linear-gradient(rgba(241, 245, 249, 0.85), rgba(241, 245, 249, 0.85)), url('automotive_bg_legal.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.theme-home {
    background-image: linear-gradient(rgba(241, 245, 249, 0.85), rgba(241, 245, 249, 0.85)), url('home_repair_bg_legal.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.theme-custom {
    background-image: linear-gradient(rgba(241, 245, 249, 0.8), rgba(241, 245, 249, 0.8)), url('custom_bg_legal.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Spell Check & Suggestions */
input[spellcheck="true"], textarea[spellcheck="true"] {
    text-decoration-skip-ink: none;
}
.title-suggestion {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-top: 4px;
    cursor: pointer;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
#shop-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; z-index: 2000;
}
.shop-overlay-content {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 24px; padding: 24px; width: 90%; max-width: 400px;
}
.shop-overlay-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.shop-btn {
    padding: 16px; border: 1px solid var(--border-color); border-radius: var(--radius);
    background: #fff; color: var(--text-color); font-weight: 600; cursor: pointer;
    text-align: center; transition: all 0.2s;
}
.shop-btn:hover { background: var(--accent-color); color: #fff; transform: translateY(-2px); }
.shop-tool-list {
    max-height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;
}
.shop-tool-item {
    background: #fff; border: 1px solid var(--border-color); border-radius: 12px;
    padding: 10px 16px; cursor: pointer; transition: all 0.2s; font-weight: 500;
}
.shop-tool-item:hover { background: #f0f0f0; }
.shop-tool-item.selected { border-color: var(--accent-color); background: #e3f2fd; color: var(--accent-color); }
.shop-overlay-divider { height: 1px; background: var(--border-color); margin: 16px 0; }
.shop-store-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.shop-store-btn {
    padding: 12px; border: 1px solid var(--border-color); border-radius: 12px;
    background: #fff; color: var(--text-color); font-weight: 600; cursor: pointer;
    text-align: center; transition: all 0.2s; font-size: 0.85rem;
}
.shop-store-btn:hover { background: var(--accent-color); color: #fff; transform: translateY(-2px); }
.premium-title { font-size: 3rem; font-weight: 800; letter-spacing: 4px; margin: 0; color: #fff; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.premium-subtitle { font-size: 1rem; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-top: 5px; }


.home-overlay {
    position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
    padding: 30px; color: #fff;
}
.home-top { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; }
.home-center { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; padding-top: 60px; }
.home-bottom { flex: 0 0 auto; margin-bottom: 20px; }

.start-project-overlay h2 { display: none; } /* Hide redundant title */

.start-project-overlay {
    background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(25px);
    padding: 50px 40px; border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%; max-width: 450px; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.home-button-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px;
}
.home-btn {
    background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 24px;
    padding: 25px 15px; color: #fff; display: flex; flex-direction: column;
    align-items: center; gap: 12px; cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.home-btn:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.home-btn .icon { font-size: 1.8rem; }
.home-btn .label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.9; }

.workspace-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('home_repair_bg_legal.png');
    background-size: cover; background-position: center; filter: brightness(0.4) blur(8px);
    z-index: 1;
}

#page-workspace { position: relative; overflow: hidden; height: 100vh; }
#page-workspace .content-header, 
#page-workspace .workspace-body {
    position: relative; z-index: 2;
}

.workspace-type-indicator {
    font-size: 0.55em;
    color: var(--text-secondary);
    margin-left: 10px;
    font-weight: 500;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-form { position: relative; z-index: 2; }




.vehicle-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.vehicle-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.header-main-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ai-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ai-status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b; /* Grey default */
    box-shadow: 0 0 10px rgba(100, 116, 139, 0.3);
}

.ai-status-badge.status-active {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.ai-status-badge.status-active .status-dot {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
    animation: pulse-status 2s infinite;
}

.ai-status-badge.status-local {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.ai-status-badge.status-local .status-dot {
    background: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

@keyframes pulse-status {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.vehicle-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

.vehicle-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(245, 245, 247, 0.8);
}

/* Autocomplete / Predictive Text Styles */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--accent-color);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 2000;
    max-height: 200px;
    overflow-y: auto;
    margin-top: -2px;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.autocomplete-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    color: var(--text-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.selected {
    background: #fff;
    color: var(--accent-color);
    box-shadow: inset 0 0 0 1px var(--accent-color);
}

.suggestion-item b {
    color: inherit;
    font-weight: 700;
}

/* Custom Nested Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.dropdown-trigger {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.dropdown-trigger:hover {
    background: #fff;
    border-color: var(--accent-color);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 2500;
    display: none;
    padding: 8px 0;
    max-height: 70vh;
    overflow-y: auto;
}

.dropdown-menu::-webkit-scrollbar { width: 6px; }
.dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.dropdown-menu::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.2); border-radius: 10px; }

.dropdown-menu.active {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    position: relative;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: background 0.2s, color 0.2s;
    font-size: 0.95rem;
    color: var(--text-color);
}

.dropdown-item:hover {
    background: #fff;
    color: var(--accent-color);
    box-shadow: inset 0 0 0 1px var(--accent-color);
}

.dropdown-item .chevron {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.dropdown-item:hover .chevron {
    opacity: 1;
}

/* Submenu Styles */
.submenu {
    width: 100%;
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid var(--accent-color);
    display: none;
}

.dropdown-item.open > .submenu {
    display: block;
}

/* Rotate chevron when open */
.dropdown-item.open > .chevron {
    transform: rotate(90deg);
}

/* Deep nesting adjustments */
.submenu .submenu {
    top: 0;
    left: 100%;
}

/* Ensure submenus stay on screen */
@media (max-width: 600px) {
    .dropdown-menu { width: 100%; }
    .submenu {
        position: static;
        width: 100%;
        margin-left: 0;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--accent-color);
        border-radius: 0;
        background: rgba(0,0,0,0.03);
    }
    .dropdown-item { flex-direction: column; align-items: flex-start; }
    .dropdown-item > .chevron { display: block; position: absolute; right: 16px; top: 14px; }
}

/* Specific tool items (leaves) */
.tool-item:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Add a bit of padding to the submenu for better visual separation */
.submenu .dropdown-item {
    padding-left: 24px;
}



/* AI Sparkle Button */
.btn-ai-sparkle {
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ai-upsell-cta {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    text-align: center;
}

.ai-upsell-cta p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.btn-ai-sparkle:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
}

.btn-ai-sparkle i {
    width: 18px;
    height: 18px;
}

/* Smart Suggest Overlay */
.smart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.smart-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.smart-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smart-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.smart-title-box h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.smart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.oem-disclaimer {
    background: rgba(0, 113, 227, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
}

.recommendations-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommendation-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.2s;
}

.recommendation-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.rec-info h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.rec-size {
    display: inline-block;
    background: #f0f0f5;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
    text-transform: uppercase;
}

.rec-usage {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 8px 0;
    line-height: 1.4;
}

.rec-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0,0,0,0.05);
}

.store-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.store-badge:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: scale(1.05);
}

.btn-buy-affiliate {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

.btn-buy-affiliate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.btn-buy-affiliate i {
    width: 14px;
    height: 14px;
}


.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-color);
}

.smart-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.text-accent {
    color: var(--accent-color);
}

/* Animations for loading */
.oem-disclaimer i {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Account & Security Page */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 10px 0 40px;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    padding-left: 5px;
    opacity: 0.8;
}

.settings-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-modern);
}

body.non-home-page .settings-card {
    background: var(--card-bg-modern);
    border-color: rgba(0,0,0,0.05);
}

.list-tile {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 18px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.list-tile:last-child {
    border-bottom: none;
}

.list-tile.clickable:hover {
    background: rgba(0, 113, 227, 0.04);
    cursor: pointer;
}

.list-tile.clickable:active {
    transform: scale(0.995);
}

.tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 113, 227, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
}

.tile-icon i {
    width: 22px;
    height: 22px;
}

.tile-icon.text-danger {
    background: rgba(255, 59, 48, 0.08);
    color: #FF3B30;
}

.tile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tile-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-modern);
}

.tile-label.text-danger {
    color: #FF3B30;
}

.tile-value {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.tile-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 1px;
}

.tile-chevron {
    color: #cbd5e1;
    width: 20px;
    height: 20px;
}

.badge-free {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pro {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}

/* Switch Component */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Content & Subscription Specific Styles */
.premium-upsell-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius);
    padding: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 20px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.premium-upsell-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.upsell-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 8px;
}

.premium-upsell-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.premium-upsell-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 5px;
}

.price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFD700;
}

.period {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-gold-pro {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.btn-gold-pro:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.4);
}

.projects-premium-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 165, 0, 0.08) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-banner-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.premium-banner-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.premium-banner-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-modern);
}

.premium-banner-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 2px 0 0 0;
}

.btn-upgrade-mini {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    gap: 2px;
}

.btn-upgrade-mini:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.btn-upgrade-mini span {
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.8;
}

@keyframes slideInDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.subscription-card-active {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.active-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #22c55e;
    font-weight: 700;
    font-size: 1.1rem;
}

.gold-seal {
    color: #FFD700;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
}

.subscription-card-active p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Segmented Picker */
.segmented-picker {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 14px;
    position: relative;
    height: 50px;
    isolation: isolate;
}

body.non-home-page .segmented-picker {
    background: rgba(0,0,0,0.05);
}

.segmented-picker input[type="radio"] {
    display: none;
}

.segmented-picker label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
}

.segmented-picker input[type="radio"]:checked + label {
    color: var(--text-modern);
}

.picker-glider {
    position: absolute;
    height: calc(100% - 8px);
    width: calc(33.333% - 4px);
    background: #fff;
    border-radius: 10px;
    top: 4px;
    left: 4px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#level-beginner:checked ~ .picker-glider { transform: translateX(0); }
#level-intermediate:checked ~ .picker-glider { transform: translateX(100%); }
#level-pro:checked ~ .picker-glider { transform: translateX(200%); }

.section-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
    padding: 0 5px;
    line-height: 1.5;
}

.btn-icon-small {
    background: rgba(0, 113, 227, 0.08);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-small:hover {
    background: var(--accent-color);
    color: #fff;
}

.btn-icon-small i {
    width: 14px;
    height: 14px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.faq-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: var(--text-modern);
    font-weight: 600;
}

.about-hero {
    margin-bottom: 20px;
}

#support-issue-text:focus {
    background: rgba(255,255,255,0.08) !important;
    border-color: var(--accent-color) !important;
}

/* Unit Preferences */
.units-preference-card {
    padding: 10px 0;
}

.unit-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.unit-setting-row:last-child {
    border-bottom: none;
}

.unit-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.unit-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 113, 227, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.unit-info span {
    font-weight: 600;
    color: var(--text-modern);
}

.unit-picker {
    width: 160px;
    height: 40px;
}

.unit-picker .picker-glider {
    width: calc(50% - 4px);
}

/* Glider positions for 2-option pickers */
.unit-picker input[type="radio"]:nth-of-type(1):checked ~ .picker-glider { transform: translateX(0); }
.unit-picker input[type="radio"]:nth-of-type(2):checked ~ .picker-glider { transform: translateX(100%); }

/* Language List */
.search-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

#language-search {
    padding-left: 42px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.language-list-card {
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.language-list {
    display: flex;
    flex-direction: column;
}

.language-item {
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
    transition: background 0.2s;
}

.language-item:last-child {
    border-bottom: none;
}

.language-item:hover {
    background: rgba(0, 113, 227, 0.04);
}

.language-item.active {
    background: rgba(0, 113, 227, 0.08);
}

.language-names {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.native-name {
    font-weight: 600;
    color: var(--text-modern);
    font-size: 0.95rem;
}

.english-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.check-icon {
    color: var(--accent-color);
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}

.language-item.active .check-icon {
    opacity: 1;
}

/* Profile Upload */
.profile-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    border: 3px solid var(--accent-color);
    box-shadow: var(--shadow-modern);
}

.upload-buttons {
    display: flex;
    gap: 10px;
}

