* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #8B4513;
    --primary-rgb: 139, 69, 19;
    --secondary: #FFFFFF;
    --accent: #D2691E;
    --text: #333333;
    --text-secondary: #666666;
    --light-bg: #F5F1E8;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-color: rgba(139, 69, 19, 0.1);
    --modal-overlay: rgba(0, 0, 0, 0.5);
    
    --glass-border: 1px solid rgba(0,0,0,0.05);
    --glass-shine: none;
    --blur-strength: 0px;
    --text-glow: none;
    
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* =========================================
   THEMES
   ========================================= */

.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    background: #000;
    overflow: hidden;
}

.liquid-bg .blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.7;
    animation: blobFloat 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-bg .noise-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    animation: noiseMove 0.5s steps(3) infinite;
    pointer-events: none;
}


.blue-theme {
    --primary: #1E3A8A;
    --primary-rgb: 30, 58, 138;
    --accent: #3B82F6;
    --light-bg: #EFF6FF;
    --shadow-color: rgba(30, 58, 138, 0.15);
}

.green-theme {
    --primary: #065F46;
    --primary-rgb: 6, 95, 70;
    --accent: #10B981;
    --light-bg: #ECFDF5;
    --shadow-color: rgba(6, 95, 70, 0.15);
}

.dark-theme {
    --primary: #60A5FA;
    --primary-rgb: 96, 165, 250;
    --secondary: #111827;
    --accent: #3B82F6;
    --text: #F3F4F6;
    --text-secondary: #9CA3AF;
    --light-bg: #1F2937;
    --card-bg: #374151;
    --border-color: #4B5563;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

.purple-theme {
    --primary: #5B21B6;
    --primary-rgb: 91, 33, 182;
    --accent: #8B5CF6;
    --light-bg: #F5F3FF;
    --shadow-color: rgba(91, 33, 182, 0.15);
}

.red-theme {
    --primary: #991B1B;
    --primary-rgb: 153, 27, 27;
    --accent: #DC2626;
    --light-bg: #FEF2F2;
    --shadow-color: rgba(153, 27, 27, 0.15);
}

.liquid-glass-theme {
    --primary: #FFFFFF;
    --primary-rgb: 255, 255, 255;
    --secondary: transparent;
    --accent: #29e7ff;
    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --light-bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --modal-overlay: rgba(0, 0, 0, 0.85);
    
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-shine: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 100%);
    --blur-strength: 40px;
    --text-glow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.liquid-glass-theme .liquid-bg {
    opacity: 1;
}

.liquid-glass-theme .blob-1 {
    width: 600px;
    height: 600px;
    background: #6D28D9;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.liquid-glass-theme .blob-2 {
    width: 500px;
    height: 500px;
    background: #DB2777;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.liquid-glass-theme .blob-3 {
    width: 350px;
    height: 350px;
    background: #0EA5E9;
    top: 40%;
    left: 60%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

/* =========================================
   COMPONENT STYLES
   ========================================= */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    background-color: var(--primary);
    color: #FFF;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all var(--transition);
}

.liquid-glass-theme .header {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: var(--glass-border);
    color: var(--text);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.liquid-glass-theme .logo h1 {
    background: linear-gradient(to right, #ffffff, #29e7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(41, 231, 255, 0.3);
}

.header-controls {
    display: flex;
    gap: 12px;
}

.btn {
    background: rgba(255, 255, 255, 0.2);
    color: #FFF;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background 0.3s;
    text-decoration: none;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

.liquid-glass-theme .btn {
    background: rgba(255, 255, 255, 0.1);
    border: var(--glass-border);
    backdrop-filter: blur(12px);
}

.liquid-glass-theme .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.liquid-glass-theme .btn-icon { color: var(--text); }

.btn-primary {
    background: var(--primary);
    color: #FFF;
    border: none;
    padding: 16px 30px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.liquid-glass-theme .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.search-wrapper {
    position: relative;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 54px;
    border-radius: 50px;
    z-index: 50;
    background: var(--card-bg);
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.liquid-glass-theme .search-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border: var(--glass-border);
    backdrop-filter: blur(25px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.search-icon {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-right: 12px;
}
.liquid-glass-theme .search-icon { color: rgba(255,255,255,0.7); }

#searchInput {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    height: 100%;
}
.liquid-glass-theme #searchInput { color: #FFF; }
.liquid-glass-theme #searchInput::placeholder { color: rgba(255,255,255,0.5); }

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    margin-top: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none;
    border: 1px solid var(--border-color);
}
.liquid-glass-theme .search-suggestions {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.1);
}
.search-suggestions.show { display: block; }

.suggestion-item {
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: 0.2s;
    color: var(--text);
}
.liquid-glass-theme .suggestion-item { 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    color: rgba(255,255,255,0.9);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--light-bg); }
.liquid-glass-theme .suggestion-item:hover { background: rgba(255,255,255,0.1); }
.suggestion-item .type {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.6;
    margin-right: 8px;
    font-weight: 700;
    background: rgba(128,128,128,0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.main {
    flex: 1;
    padding: 40px 0;
}

.hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 50px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px -10px var(--shadow-color);
    transition: background var(--transition), transform var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.hero:hover {
    transform: scale(1.01);
}

.liquid-glass-theme .glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: var(--glass-border);
    background-image: var(--glass-shine);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.liquid-glass-theme .hero:hover {
    box-shadow: 0 0 50px rgba(41, 231, 255, 0.2);
    border-color: rgba(41, 231, 255, 0.3);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    letter-spacing: -1px;
}

.liquid-glass-theme .hero h2 {
    color: var(--text);
    text-shadow: var(--text-glow);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.card {
    background: var(--card-bg);
    padding: 30px 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.liquid-glass-theme .card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--light-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.6rem;
    transition: background 0.3s, color 0.3s;
}

.liquid-glass-theme .card-icon {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.profiles-section {
    animation: fadeIn 0.5s ease;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}
.liquid-glass-theme .section-header {
    border: var(--glass-border);
}

.section-title-wrapper h2 {
    font-size: 1.8rem;
    color: var(--primary);
}
.liquid-glass-theme .section-title-wrapper h2 { color: var(--text); }
.section-title-wrapper span {
    color: var(--accent);
    margin-left: 10px;
}

.filter-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.sort-button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s;
}

.liquid-glass-theme .sort-button {
    background: rgba(255, 255, 255, 0.08);
    border: var(--glass-border);
    color: var(--text-secondary);
}

.sort-button.active {
    background: var(--primary);
    color: #FFF;
    border-color: var(--primary);
}

.liquid-glass-theme .sort-button.active {
    background: rgba(255, 255, 255, 0.2);
    color: #FFF;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.profiles-grid:has(.no-profiles) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}
.no-profiles {
    text-align: center; 
    padding: 40px; 
    color: var(--text-secondary);
    width: 100%;
}
.liquid-glass-theme .no-profiles { color: rgba(255,255,255,0.7); }

.profile-card-small {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.liquid-glass-theme .profile-card-small {
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    backdrop-filter: blur(25px);
}

.profile-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.profile-card-small.pinned-profile {
    border-color: var(--accent);
}
.profile-card-small.pinned-profile::after {
    content: "\f08d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--accent);
    opacity: 0.8;
    transform: rotate(45deg);
}

.profile-photo-small img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-bg);
}
.liquid-glass-theme .profile-photo-small img {
    border-color: rgba(255,255,255,0.1);
}

.profile-info-small {
    flex: 1;
}

.profile-name-small {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-specialization-small {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-rating-small {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.rating-stars-small { color: #FFD700; }

.profile-price-small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}
.liquid-glass-theme .profile-price-small { color: var(--accent); }




.profile-detail-container {
    padding: 40px;
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}
.liquid-glass-theme .profile-detail-container { border: var(--glass-border); }

.profile-header-info {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.profile-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--light-bg);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.profile-basic-info h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.profile-specialization {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.profile-description h3, .profile-requirements h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary);
}
.liquid-glass-theme .profile-description h3, 
.liquid-glass-theme .profile-requirements h3 { color: var(--accent); }

.profile-description, .profile-requirements, .profile-details {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}
.liquid-glass-theme .profile-description,
.liquid-glass-theme .profile-requirements,
.liquid-glass-theme .profile-details { border-bottom-color: rgba(255,255,255,0.1); }

.requirements-list {
    list-style: none;
}
.requirements-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}
.requirements-list li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1rem;
    top: 5px;
}
.liquid-glass-theme .requirements-list li::before { color: var(--accent); }

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.detail-item h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.detail-item p {
    font-size: 1.1rem;
    font-weight: 600;
}

.profile-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.profile-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    text-align: center;
}

.profile-button.contact {
    background: var(--primary);
    color: #FFF;
}
.liquid-glass-theme .profile-button.contact {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

.profile-button.channel {
    background: #0088cc;
    color: #FFF;
}

.profile-button.works {
    background: #333;
    color: #FFF;
}

.profile-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.footer {
    background-color: #2D3436;
    color: #DFE6E9;
    padding: 40px 0;
    margin-top: auto;
}

.liquid-glass-theme .footer {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(30px);
    border-top: var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150px);
    background: var(--card-bg);
    color: var(--text);
    padding: 18px 28px;
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s;
    border: 1px solid var(--border-color);
    width: auto;
    max-width: 90%;
    white-space: nowrap;
}

.liquid-glass-theme .notification {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #FFF;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-icon {
    color: #10B981;
    font-size: 1.4rem;
}

.close-notification {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0 5px;
    line-height: 1;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s;
}

.modal.active .modal-overlay {
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.liquid-glass-theme .modal-content {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.liquid-glass-theme .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.4rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.liquid-glass-theme .modal-header h2 {
    color: #FFF;
}

.modal-close-icon {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
}

.modal-close-icon:hover {
    color: var(--text);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 24px 30px;
    border-top: 1px solid var(--border-color);
    text-align: right;
    background: rgba(0,0,0,0.02);
}

.liquid-glass-theme .modal-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.style-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.style-option {
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.liquid-glass-theme .style-option {
    background: rgba(255, 255, 255, 0.05);
}

.style-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.style-option.selected {
    border-color: var(--primary);
    background: #FFF;
}
.liquid-glass-theme .style-option.selected {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

.style-check {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--primary);
    opacity: 0;
    transform: scale(0.5);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
}

.liquid-glass-theme .style-check { color: var(--accent); }

.style-option.selected .style-check {
    opacity: 1;
    transform: scale(1);
}

.style-preview {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.brown-white { background: linear-gradient(135deg, #8B4513, #F5F1E8); }
.blue-white { background: linear-gradient(135deg, #1E3A8A, #EFF6FF); }
.green-white { background: linear-gradient(135deg, #065F46, #ECFDF5); }
.dark-light { background: linear-gradient(135deg, #111827, #374151); }
.purple-white { background: linear-gradient(135deg, #5B21B6, #F5F3FF); }
.red-white { background: linear-gradient(135deg, #991B1B, #FEF2F2); }
.liquid-glass { 
    background: #000; 
    position: relative; 
    overflow: hidden;
}
.liquid-blob-prev {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, #ec4899, transparent 60%), radial-gradient(circle at 70% 70%, #3b82f6, transparent 60%);
    filter: blur(5px);
    animation: spin 4s linear infinite;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.liquid-glass-theme .language-option {
    background: rgba(255, 255, 255, 0.05);
}

.language-option:hover {
    background: #FFF;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.language-option.selected {
    border-color: var(--primary);
    background: #FFF;
}

.liquid-glass-theme .language-option.selected {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

.language-option img {
    width: 36px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lang-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lang-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.lang-native {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.check-icon {
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
    font-size: 1.2rem;
}
.liquid-glass-theme .check-icon { color: var(--accent); }

.language-option.selected .check-icon { 
    opacity: 1; 
    transform: translateX(0);
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

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

@keyframes noiseMove {
    0% { transform: translate(0,0); }
    100% { transform: translate(-10%,-10%); }
}

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

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

/* =========================================
   MOBILE RESPONSIVENESS (Bottom Sheet & App Feel)
   ========================================= */

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --radius-lg: 18px;
        --radius-xl: 26px;
    }

    .container {
        padding: 0 20px;
    }

    .content {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .content .special-card {
        grid-column: 1 / -1;
    }

    .card {
        padding: 24px 16px;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 14px;
        min-height: 150px;
        justify-content: center;
    }
    
    .card-icon {
        margin-bottom: 0;
        width: 52px;
        height: 52px;
        flex-shrink: 0;
        font-size: 1.3rem;
        border-radius: 14px;
    }
    
    .card h3 {
        font-size: 1rem;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .card p {
        font-size: 0.85rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        opacity: 0.8;
    }

    .header-controls button span {
        display: none;
    }
    
    .header-controls button {
        padding: 10px;
        width: 44px;
        height: 44px;
        justify-content: center;
        border-radius: 50%;
    }

    .hero {
        padding: 40px 24px;
        margin-bottom: 30px;
    }

    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card-small {
        padding: 24px;
    }
    
    .profile-header-info {
        gap: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .profile-photo img {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    
    .profile-basic-info h2 {
        font-size: 1.8rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-detail-container {
        padding: 30px 24px;
    }

    .profile-actions {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .notification {
        width: 90%;
        white-space: normal;
        text-align: left;
        border-radius: 20px;
        transform: translateX(-50%) translateY(-200px);
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .modal {
        align-items: flex-end;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 32px;
        border-top-right-radius: 32px;
        max-height: 85vh;
        transform: translateY(100%);
        margin: 0;
        opacity: 1;
        padding-bottom: env(safe-area-inset-bottom);
        transition: transform 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    }

    .modal.active .modal-content {
        transform: translateY(0);
    }
    
    .modal-header {
        padding: 24px 28px;
        justify-content: center;
        position: relative;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-close-icon {
        position: absolute;
        right: 24px;
        top: 24px;
    }
    
    .modal-body {
        padding: 20px 28px;
        padding-bottom: 40px;
    }
    
    .modal-footer {
        padding: 20px 28px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    .modal-content::after {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 48px;
        height: 5px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        pointer-events: none;
    }
    
    .style-options {
        grid-template-columns: repeat(2, 1fr);
    }
}