:root {
    --primary: #8B5CF6;
    --primary-hover: #7C3AED;
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-card: #111111;
    --border: #222222;
    --text-primary: #FFFFFF;
    --text-secondary: #999999;
    --success: #34C759;
    --gradient: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --purple-gradient: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6366F1 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Dark mode scrollbar - Force black/dark theme */
/* Global scrollbar styles */
::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
}

::-webkit-scrollbar-track {
    background: #000000 !important;
    border-radius: 6px !important;
}

::-webkit-scrollbar-thumb {
    background: #333333 !important;
    border-radius: 6px !important;
    transition: background 0.2s !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555 !important;
}

/* Specific selectors for html and body */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #000000 !important;
    border-radius: 6px !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: #333333 !important;
    border-radius: 6px !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #555555 !important;
}

/* Firefox scrollbar - Force black/dark theme */
* {
    scrollbar-width: thin !important;
    scrollbar-color: #333333 #000000 !important;
}

html {
    scrollbar-width: thin !important;
    scrollbar-color: #333333 #000000 !important;
}

body {
    scrollbar-width: thin !important;
    scrollbar-color: #333333 #000000 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 769px) {
    .container {
        padding: 0 24px;
    }
}

/* Picture element fixes */
picture {
    display: inline-block;
    line-height: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.98) 10%, 
        rgba(0, 0, 0, 0.9) 30%, 
        rgba(0, 0, 0, 0.7) 50%, 
        rgba(0, 0, 0, 0.4) 70%, 
        rgba(0, 0, 0, 0.1) 90%, 
        rgba(0, 0, 0, 0) 100%);
    z-index: 1000;
    padding: 12px 0 20px 0;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.8) 50%, 
        rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.8) 50%, 
        rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Download button wrapper for ribbon */
.download-button-wrapper {
    display: inline-block;
    position: relative;
}

/* License ribbon - desktop only */
.license-ribbon {
    display: none;
}

@media (min-width: 769px) {
    .license-ribbon {
        display: block;
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-secondary);
        padding: 4px 16px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 500;
        white-space: nowrap;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1;
    }
}

/* Buttons */
.cta-button {
    background: var(--purple-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button.large {
    padding: 16px 32px;
    font-size: 18px;
    height: 56px;
}

/* Desktop: Make hero download button taller to accommodate ribbon */
@media (min-width: 769px) {
    .hero-actions .cta-button.large {
        padding: 20px 32px;
        height: 64px;
        margin-top: 8px;
    }
}

.comparison-container .cta-button.large {
    margin-top: 36px;
}

.cta-button.full-width {
    width: 100%;
    justify-content: center;
}

.cta-button svg {
    transition: transform 0.2s;
}

.cta-button:hover svg {
    transform: translateX(2px);
}

.apple-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
    opacity: 0.9;
}

.cta-button.large .apple-icon {
    width: 18px;
    height: 18px;
}

.secondary-button {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-button:hover {
    background: var(--border);
}

/* Hero Section */
.hero {
    min-height: 110vh;
    width: 100%;
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, #000 0%, #000 60%, #0A0A0A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
}

/* Hero background image only on desktop for performance */
@media (min-width: 769px) {
    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: -10%; /* Shift image 10% to the left */
        right: 0;
        bottom: 0;
        background-image: url('../images/hero-bg.webp');
        background-size: cover;
        background-position: center 35%;
        background-repeat: no-repeat;
        z-index: 1;
        /* Feather effect on right and bottom edges */
        mask-image: linear-gradient(to bottom, 
            rgba(0, 0, 0, 1) 0%, 
            rgba(0, 0, 0, 1) 60%, 
            rgba(0, 0, 0, 0.8) 80%, 
            rgba(0, 0, 0, 0) 100%);
        -webkit-mask-image: linear-gradient(to bottom, 
            rgba(0, 0, 0, 1) 0%, 
            rgba(0, 0, 0, 1) 60%, 
            rgba(0, 0, 0, 0.8) 80%, 
            rgba(0, 0, 0, 0) 100%);
    }
}




.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(52, 199, 89, 0.2); /* Increased opacity */
    border: 1px solid rgba(52, 199, 89, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    white-space: nowrap; /* Prevent text wrapping */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
}

.keyboard-shortcut {
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-actions {
    margin-bottom: 60px;
}

.small-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 12px;
}

/* macOS requirement with Apple logo alignment */
.macos-requirement {
    display: flex;
    align-items: flex-start; /* Align items to the top/first line */
    gap: 6px;
    justify-content: center;
}

.macos-icon {
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-top: 2px; /* Fine-tune vertical alignment with first line of text */
}

.hero-visual {
    max-width: 500px;
    margin: 0 auto;
}

.waveform-demo {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 20px 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px; /* Fixed height to prevent container size issues */
    box-sizing: border-box;
    min-width: 200px; /* Ensure minimum width for visibility */
}

.waveform-demo:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

#heroWaveform {
    width: 100%;
    height: 40px;
    display: block;
    max-height: 40px; /* Prevent canvas from exceeding intended height */
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.features::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-image: url('../images/voicci-mascot-flying.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    transform: rotate(-15deg);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 300px));
    gap: 24px;
    justify-content: center;
    max-width: 640px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

svg.feature-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--primary);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover svg.feature-icon {
    background: rgba(139, 92, 246, 0.2);
    transform: scale(1.05);
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Removed .feature-card-with-mascot - no longer needed */

.feature-mascot {
    position: absolute;
    top: -25px;
    right: -25px;
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 10;
}

/* Top-left positioning for One Shortcut and Lightning Fast */
.feature-card:nth-child(1) .feature-mascot,
.feature-card:nth-child(3) .feature-mascot {
    left: -25px;
    right: auto;
}

/* Special sizing for coffee mascot */
.feature-card:nth-child(3) .feature-mascot {
    height: 82px;
    width: auto;
}

.feature-card:hover .feature-mascot {
    transform: scale(1.05) rotate(2deg);
    opacity: 1;
}

/* Demo Section */
.demo {
    padding: 100px 0;
    background: var(--bg-primary);
}

.demo-content {
    text-align: center;
}

.demo-content h2 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 80px; /* Increased spacing below title */
}

.demo-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 120px; /* Increased spacing below videos */
}

.video-container {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.video-container:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.video-caption {
    padding: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    font-weight: 500;
}

.demo-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 40px auto 120px; /* Increased spacing above and below steps */
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
}

.step:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.step:hover .step-mascot {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

/* Removed .step-with-mascot - no longer needed */

.step-mascot {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 100px;
    height: auto;
    opacity: 0.8;
    pointer-events: none;
    z-index: 10;
}

/* Specific styling for step 1 mascot (voicci-typewriter) */
.demo-steps > .step:nth-of-type(1) .step-mascot {
    width: 75px;
    top: -30px;
    left: -30px;
}

/* Specific styling for step 2 mascot (voicci-sing) */
.demo-steps > .step:nth-of-type(3) .step-mascot {
    width: 100px;
    top: -40px;
    left: -40px;
}

/* Specific styling for step 3 mascot (voicci-keyboard) */
.demo-steps > .step:nth-of-type(5) .step-mascot {
    width: 75px;
    top: -35px;
    left: -35px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 16px;
    font-size: 18px;
}

.step p {
    font-weight: 500;
    color: var(--text-primary);
}

.step-arrow {
    color: var(--text-secondary);
    font-size: 24px;
    opacity: 0.5;
    flex-shrink: 0;
}

.research-citation {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 20px;
}

.research-citation a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.research-citation a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}


.pricing-content {
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 48px;
}

/* Pricing Comparison */
.pricing-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    transition: all 0.3s;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
}

.comparison-container.other-apps {
    opacity: 0.8;
}

.comparison-container.voicci-container {
    border: 2px solid var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.comparison-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.drake-img {
    width: 120px;
    height: auto;
    position: absolute;
    bottom: -20px;
    border-radius: 12px 12px 30px 30px;
    z-index: 10;
}

.comparison-container.other-apps .drake-img {
    left: -20px;
}

.comparison-container.voicci-container .drake-img {
    right: -20px;
}

.comparison-content {
    flex-grow: 1;
}

.comparison-actions {
    margin-top: auto;
    margin-bottom: 0;
}

.competitor-cta {
    padding: 16px 32px;
    border: 2px dashed rgba(255, 68, 68, 0.3);
    border-radius: 12px;
    text-align: center;
    background: rgba(255, 68, 68, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin-bottom: 40px;
}

.competitor-cta span {
    color: #cc0000; /* Improved contrast from #ff4444 */
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    white-space: normal;
    word-wrap: break-word;
}

.comparison-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.comparison-header .price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.comparison-header .currency {
    font-size: 24px;
    font-weight: 600;
    opacity: 0.8;
}

.comparison-header .amount {
    font-size: 48px;
    font-weight: 800;
}

.comparison-header .period {
    font-size: 24px;
    color: #ff4444;
    font-weight: 500;
}

.comparison-header .period.one-time {
    color: #34C759 !important;
}

.comparison-header .price-description {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: -8px;
    margin-bottom: 16px;
}

.comparison-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.features-list.negative li svg {
    color: #ff4444;
}

.features-list.positive li svg {
    color: #34C759;
}

.pricing-header h2 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
}

.price-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-card), var(--bg-card)), var(--purple-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.price-card-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(52, 199, 89, 0.95); /* More opaque background */
    border: 1px solid rgba(52, 199, 89, 1);
    color: rgba(255, 255, 255, 0.95); /* High contrast white text */
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px; /* Move up more */
    white-space: nowrap; /* Prevent text wrapping */
}

.trial-badge svg {
    width: 14px;
    height: 14px;
}

.price-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.currency {
    font-size: 32px;
    font-weight: 600;
    opacity: 0.8;
}

.amount {
    font-size: 72px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-description {
    color: var(--text-secondary);
}

.features-list {
    list-style: none;
    margin-bottom: 0;
    position: relative;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.features-list svg {
    color: var(--success);
    flex-shrink: 0;
}

.guarantee {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 16px;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 16px;
}

.newsletter-form input::placeholder {
    color: var(--text-secondary);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-message {
    margin-top: 16px;
    font-size: 14px;
}

.form-message.success {
    color: var(--success);
}

.form-message.error {
    color: #FF3B30;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 440px;
    margin: 5% auto;
    padding: 48px;
    position: relative;
}

.close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    background: none;
    border: none;
    color: var(--text-primary);
}

.close:hover {
    opacity: 1;
}

.auth-form h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-form input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 16px;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.account-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.account-info p {
    margin: 8px 0;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
}

/* Comparison Table */
.comparison {
    margin-top: 60px;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.comparison h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 1px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.comparison-header {
    display: contents;
}

.comparison-header > div {
    background: var(--bg-card);
    padding: 16px;
    font-weight: 600;
    text-align: center;
}

.comparison-header > div:first-child {
    text-align: left;
}

.voicci-col {
    background: rgba(0, 122, 255, 0.05);
    color: var(--primary);
}

.comparison-row {
    display: contents;
}

.comparison-row > div {
    background: var(--bg-primary);
    padding: 16px;
    display: flex;
    align-items: center;
}

.feature-name {
    font-weight: 500;
    color: var(--text-secondary);
}

.comparison-row .voicci-col {
    background: rgba(0, 122, 255, 0.05);
    color: var(--text-primary);
    font-weight: 600;
    justify-content: center;
}

.comparison-row .voicci-col.highlight {
    color: var(--success);
}

.other-col {
    color: var(--text-secondary);
    text-align: center;
    justify-content: center;
}

.comparison-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0.8;
}

/* Testimonials Banner Section */
.testimonials-banner {
    background: #7C3AED; /* Darker purple for better contrast with white text */
    padding: 32px 0;
    overflow: hidden;
    position: relative;
}

.testimonials-content {
    text-align: center;
}

.testimonials-header {
    text-align: center;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stars {
    color: #FFC107;
    font-size: 24px;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.testimonials-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
}

.testimonials-subtitle .google-link {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.testimonials-subtitle .google-link:hover {
    opacity: 0.8;
}

.testimonials-slider {
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-track {
    display: flex;
    gap: 24px;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px 32px;
    min-width: 400px;
}

.testimonial p {
    color: white;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
    font-style: italic;
}

.testimonial .author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

/* Prestige Logos Section */
.prestige-logos {
    padding: 80px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.prestige-logos h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-item {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
}

a.logo-item {
    text-decoration: none;
    color: inherit;
}

.logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.logo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.3);
}

.logo-item:hover::before {
    opacity: 0.03;
}

.logo-item img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.logo-item.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.02em;
}

.logo-item.logo-text span {
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.logo-item.logo-text:hover span {
    filter: grayscale(0%) opacity(1);
    color: var(--primary);
}


.logo-text-styled {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Raleway', 'Inter', sans-serif;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
    color: white;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.logo-item:hover .logo-text-styled {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.logo-item.coming-soon {
    border: 2px dashed rgba(0, 0, 0, 0.2);
    background: #F8F8F8;
    cursor: default;
}

.logo-item.coming-soon:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.2);
}

.logo-item.coming-soon em {
    font-size: 13px;
    font-weight: 500;
    color: #999;
    font-style: italic;
}

.logo-item.voicci-logo {
    flex-direction: column;
    gap: 8px;
}

.logo-item.voicci-logo img {
    max-width: 60px;
    max-height: 60px;
}

.logo-item.voicci-logo .logo-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.02em;
}

.logo-item.logo-large img {
    max-width: 140px;
    max-height: 80px;
}

.logo-item.kbc-startit img {
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }
    
    .nav-link {
        display: none;
    }
    
    .logo {
        height: 48px;
    }
    
    .logo-text {
        font-size: 22px;
        font-weight: 600 !important;
    }
    
    /* Hero section mobile */
    .hero {
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: clamp(36px, 10vw, 48px);
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 32px;
        padding: 0 20px;
    }
    
    .keyboard-shortcut {
        font-size: 14px;
        padding: 3px 6px;
    }
    
    /* Mobile download button with macOS clarification */
    .cta-button.large {
        font-size: 16px;
        padding: 14px 24px;
        height: auto;
        white-space: normal;
    }
    
    .cta-button.large span {
        display: block;
    }
    
    /* Add "macOS only" text for mobile */
    .cta-button.large span::after {
        content: " (macOS only)";
        display: block;
        font-size: 12px;
        opacity: 0.8;
        margin-top: 2px;
    }
    
    .hero-visual {
        margin-top: 40px;
    }
    
    .waveform-demo {
        padding: 16px 20px;
        height: 60px; /* Fixed height on mobile */
    }
    
    #heroWaveform {
        height: 30px;
    }
    
    /* Features mobile */
    .features::after {
        display: none; /* Hide the floating transparent mascot on mobile */
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .feature-mascot {
        width: 60px;
        height: 60px;
        top: -15px;
        right: -10px;
    }
    
    /* Position all mascots 20px above containers, 10px left on mobile */
    .feature-card .feature-mascot {
        left: 6px;
        right: auto;
        top: -4px;
        bottom: auto;
        transform: scale(1.08);
    }
    
    /* Ensure all mascots are aligned consistently */
    .feature-card:nth-child(1) .feature-mascot,
    .feature-card:nth-child(2) .feature-mascot,
    .feature-card:nth-child(3) .feature-mascot,
    .feature-card:nth-child(4) .feature-mascot {
        left: 6px;
        right: auto;
        top: -4px;
        bottom: auto;
    }
    
    /* Make No Clutter mascot (card 4) 10% smaller total */
    .feature-card:nth-child(4) .feature-mascot {
        transform: scale(0.98);
    }
    
    /* Move SVG icons to the right side on mobile */
    svg.feature-icon {
        position: absolute;
        top: 16px;
        right: 16px;
    }
    
    /* Center feature card headers on mobile */
    .feature-card h3 {
        text-align: center;
    }
    
    /* Adjust coffee mascot size on mobile */
    .feature-card:nth-child(3) .feature-mascot {
        height: 65px;
        width: auto;
    }
    
    /* Demo section mobile */
    .demo-videos {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 60px;
    }
    
    .demo-steps {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
    }
    
    .step {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
    
    .step-mascot {
        width: 60px;
        top: -25px;
        left: -25px;
    }
    
    /* Make step 4 mascot (voicci flying) larger on mobile */
    .demo-steps > .step:nth-of-type(7) .step-mascot {
        width: 80px;
        top: -35px;
        left: -35px;
    }
    
    /* Pricing mobile */
    .pricing-comparison {
        grid-template-columns: 1fr;
        gap: 60px; /* Increased gap to prevent Drake images from overlapping */
        align-items: center;
        padding: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .comparison-container {
        padding: 24px;
        min-height: auto;
        margin: 0 auto !important;
        max-width: 350px;
        width: calc(100% - 32px);
        position: relative;
        overflow: visible;
        margin-top: 40px !important; /* Add space for Drake images */
    }
    
    .drake-img {
        width: 60px;
        height: 60px;
        top: -30px;
        bottom: auto !important; /* Override desktop bottom positioning */
        position: absolute !important;
    }
    
    .comparison-container.other-apps .drake-img {
        left: -3px; /* Move 5px further left */
        top: 35px; /* Move 25px further down vertically */
    }
    
    .comparison-container.voicci-container .drake-img {
        left: 5px; /* Move 5px further left */
        right: auto;
    }
    
    .competitor-cta {
        padding: 12px 20px;
        min-height: auto;
        margin-bottom: 24px;
    }
    
    .competitor-cta span {
        font-size: 14px;
        line-height: 20px;
    }
    
    /* Testimonials mobile */
    .testimonials-header {
        margin-bottom: 16px;
    }
    
    .stars {
        font-size: 20px;
    }
    
    .rating-text {
        font-size: 18px;
    }
    
    /* Prestige logos mobile */
    .logos-grid {
        gap: 16px;
    }
    
    .logo-item {
        width: 140px;
        height: 100px;
        padding: 16px;
    }
    
    .logo-item img {
        max-width: 80px;
        max-height: 40px;
    }
    
    .logo-item.logo-large img {
        max-width: 100px;
        max-height: 60px;
    }
    
    .logo-text-styled {
        width: 80px;
        height: 40px;
        font-size: 12px;
    }
    
    .prestige-logos {
        padding: 60px 0;
    }
    
    .prestige-logos h3 {
        font-size: 24px;
        margin-bottom: 32px;
    }
    
    /* Ensure pricing section is centered */
    .pricing-content {
        padding: 0 16px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }
    
    .pricing-header {
        text-align: center;
        width: 100%;
    }
    
    /* Other mobile adjustments */
    .newsletter-form {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 32px 24px;
    }
    
    .comparison-grid {
        font-size: 14px;
    }
    
    .comparison {
        padding: 24px;
    }
    
    .testimonial {
        min-width: 300px;
        padding: 20px 24px;
    }
    
    .testimonial p {
        font-size: 14px;
    }
}

/* Social Sharing Section */
.social-share {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.share-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.share-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.fire-emoji {
    color: #ff4444;
}

.share-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.share-url-container {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto 32px;
}

.share-url-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'SF Mono', monospace;
    background: var(--bg-card);
    color: var(--text-primary);
    text-align: center;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #7C3AED; /* Darker purple for better contrast */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #6D28D9; /* Even darker on hover for better contrast */
    transform: translateY(-1px);
}

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

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    transition: all 0.3s;
    color: white;
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.social-btn.twitter {
    background: #000;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.reddit {
    background: #ff4500;
}

.social-btn.messenger {
    background: #0084ff;
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

@media (max-width: 768px) {
    .social-share {
        padding: 60px 0;
    }
    
    .share-content h2 {
        font-size: 28px;
    }
    
    .share-url-container {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .testimonials-header {
        margin-bottom: 16px;
    }
    
    .stars {
        font-size: 20px;
    }
    
    .rating-text {
        font-size: 18px;
    }
    
    .logos-grid {
        gap: 16px;
    }
    
    .logo-item {
        width: 140px;
        height: 100px;
        padding: 16px;
    }
    
    .logo-item img {
        max-width: 80px;
        max-height: 40px;
    }
    
    .logo-item.logo-large img {
        max-width: 100px;
        max-height: 60px;
    }
    
    .prestige-logos {
        padding: 60px 0;
    }
    
    .prestige-logos h3 {
        font-size: 24px;
        margin-bottom: 32px;
    }
}

/* Footer Styles */
.footer {
    position: relative;
    background: #1a1a1a;
    color: #999;
    padding: 40px 0 120px 0;
    margin-top: 100px;
    border-top: 1px solid #333;
    overflow: visible;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left p {
    margin: 0;
    font-size: 14px;
}

.footer-vat {
    margin-top: 5px !important;
    font-size: 12px;
    color: #666;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2d2d2d;
    padding: 20px;
    display: none;
    z-index: 9999;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    overflow: visible;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    padding-right: 150px;
}

.cookie-content p {
    margin: 0;
    color: #fff;
    font-size: 14px;
    flex: 1;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    overflow: visible;
}

.cookie-accept {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.2s;
}

.cookie-accept:hover {
    opacity: 0.9;
}

.cookie-learn {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    padding: 0 10px;
}

.cookie-learn:hover {
    color: #ccc;
    text-decoration: underline;
}

.cookie-reject {
    background: transparent;
    color: #666;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.cookie-reject:hover {
    color: #999;
}

.cookie-icon {
    width: auto;
    height: 120px;
    position: absolute;
    right: 20px;
    bottom: -20px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover {
    transform: translateX(-50%) translateY(-3px);
}

.scroll-to-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Legal Pages Styles */
.legal-page {
    padding: 80px 0 40px;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.legal-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #fff;
}

.legal-content p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: #ccc;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 30px;
}

.legal-content li {
    line-height: 1.8;
    margin-bottom: 8px;
    color: #ccc;
}

.legal-updated {
    font-style: italic;
    color: #999;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer {
        padding-bottom: 120px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* Fix joyful voicci positioning on mobile */
    .scroll-to-top {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding-right: 80px; /* Less padding for smaller Ursula */
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-learn {
        display: none;
    }
    
    .cookie-icon {
        width: auto;
        height: 60px; /* Smaller Ursula for mobile/tablet */
        right: 10px;
        bottom: -10px;
    }
}


/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Language Selector - Now positioned in header */
.language-selector {
    position: relative;
    margin-left: 32px; /* Space from nav links */
}

.language-dropdown {
    position: relative;
}

/* Current language button */
.language-current {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    background: transparent;
    backdrop-filter: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    gap: 8px; /* Added proper spacing between icon and text */
    transition: all 0.2s;
}

.language-current:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Language icon */
.lang-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-right: 4px;
    position: relative;
    top: -1px;
}

/* Text styling */
.lang-text {
    font-weight: 600;
    font-size: 16px;
    margin-left: 0;
    margin-right: 8px;
}

/* Dropdown arrow */
.lang-arrow {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease;
}

.lang-arrow.open {
    transform: rotate(180deg);
}

/* Dropdown options container */
.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 901;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for language options - Dark theme */
.language-options::-webkit-scrollbar {
    width: 8px;
}

.language-options::-webkit-scrollbar-track {
    background: #000000 !important;
    border-radius: 4px;
}

.language-options::-webkit-scrollbar-thumb {
    background: #333333 !important;
    border-radius: 4px;
    transition: background 0.2s;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: #555555 !important;
}

/* Firefox scrollbar styling */
.language-options {
    scrollbar-width: thin;
    scrollbar-color: #333333 #000000 !important;
}

.language-options.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Individual language options */
.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    border: none;
    background: none;
    text-align: left;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-option.active {
    background: rgba(139, 92, 246, 0.2);
    color: white;
}

/* Favorite star styling */
.favorite-star {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    flex-shrink: 0;
}

.favorite-star:hover {
    color: #FFD700;
    transform: scale(1.2);
}

.favorite-star.favorited {
    color: #FFD700;
}

/* Language separator between favorites and others */
.language-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 16px;
    position: relative;
}

@media (max-width: 768px) {
    .language-selector {
        margin-left: 16px; /* Less space on mobile */
    }
    
    .language-options {
        max-height: 250px;
    }
}
