:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #334155;
    --bg-dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #10b981;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 80px;
    /* Space for fixed navbar */
}

/* Background Blobs */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
}

.blob-1 {
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation: move 20s infinite alternate;
}

/* State-based UI Toggling */
body.in-dashboard #homepage-content,
body.in-dashboard #gdpr-section,
body.in-dashboard #use-cases-section {
    display: none !important;
}

body.in-dashboard #dashboard {
    display: block !important;
}

body.in-dashboard #lang-switcher-container {
    display: none !important;
}

body.in-dashboard .hero-actions {
    display: none !important;
}

body.in-dashboard #nav-dashboard,
body.in-dashboard #user-menu {
    display: flex !important; /* Force visibility on refresh */
}

body.in-dashboard #login-btn,
body.in-dashboard #signup-btn {
    display: none !important;
}

.blob-2 {
    background: #ec4899;
    bottom: -10%;
    right: -10%;
    animation: move 25s infinite alternate-reverse;
}

.blob-3 {
    background: var(--accent);
    top: 40%;
    left: 50%;
    width: 200px;
    height: 200px;
    animation: move 15s infinite alternate;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.1);
    }
}

/* Nav */
nav {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap between image and text */
}

.logo-text {
    color: white;
}

.logo-text span {
    color: var(--primary);
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Removed legacy .logo span rule */

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Custom Language Switcher */
.lang-switcher-container {
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.lang-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Increased space */
    background: var(--glass);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 150px;
    /* Width check */
    user-select: none;
}

.lang-selected:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.lang-selected img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lang-selected span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    flex-grow: 1;
}

.lang-selected i {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.lang-switcher-container.open .lang-selected i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 170px;
    display: none;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-switcher-container.open .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    transition: all 0.2s;
    cursor: pointer;
    color: var(--text-main);
}

.lang-option:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.lang-option img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.lang-option span {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-upgrade-btn {
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-upgrade-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

/* Auth Modal & Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-toggle {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-toggle span {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
}

#user-menu {
    display: none;
    align-items: center;
    gap: 1rem;
    background: var(--glass);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 0.8rem;
    border-radius: 8px;
    display: none;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.dashboard-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.link-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.2s;
}

.link-item:hover,
.link-item.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.link-item-code {
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-bottom: 0.3rem;
}

.link-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.chart-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    height: 350px;
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.action-btns {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: var(--primary);
}

.delete-btn:hover {
    color: #ef4444;
}

.chart-mini {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    height: 300px;
}

.short-code-preview {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease-out;
}

/* Advanced Options */
.advanced-toggle {
    margin-top: 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    user-select: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.advanced-toggle.highlight-advanced {
    font-weight: 800;
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.advanced-toggle:hover {
    color: #6366f1;
    background: rgba(255, 255, 255, 0.05);
}

.advanced-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.4s ease-out;
}

.advanced-options-grid input,
.advanced-options-grid select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    width: 100%;
}

.advanced-options-grid input:focus,
.advanced-options-grid select:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
    .advanced-options-grid {
        grid-template-columns: 1fr;
    }
}

/* Usage Progress Bars */
.usage-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 1rem 0 0.5rem;
    overflow: hidden;
}

.usage-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.5s ease-out;
}

.usage-bar.warning {
    background: #f59e0b;
}

.usage-bar.danger {
    background: #ef4444;
}

.usage-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Pricing Toggle */
.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    user-select: none;
}

.toggle-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
    cursor: pointer;
}

.toggle-label.active {
    color: var(--text-main);
    font-weight: 700;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.pricing-toggle-container.annual .toggle-switch::after {
    left: 30px;
}

.pricing-toggle-container.annual .toggle-switch {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.save-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-left: 0.5rem;
}

.pricing-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
    border-radius: 24px;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.popular-tag {
    position: absolute;
    top: -15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    width: 100%;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.features-list li i {
    color: var(--primary);
    margin-right: 10px;
}

@media (max-width: 900px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Form Builder Styles */
.form-builder-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.builder-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr auto;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    align-items: end;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.builder-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.builder-field-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.builder-field-group input,
.builder-field-group select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: white;
    outline: none;
}

.builder-field-group input:focus,
.builder-field-group select:focus {
    border-color: var(--primary);
}

.btn-remove {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
}

.builder-controls {
    display: flex;
    justify-content: flex-start;
}

.btn-add-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px dashed var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
    font-weight: 600;
}

/* Card Glass effect for Admin sections */
.card-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card-glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-add-field:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.hero {
    max-width: 800px;
    margin: 3rem auto 4rem;
    text-align: center;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -2px;
}

.hero-actions {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Tour Styles */
.tour-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s;
}

.tour-popover {
    position: absolute;
    width: 320px;
    padding: 1.5rem;
    border-radius: 16px;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tour-header h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0;
}

.tour-progress {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tour-popover p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-nav {
    display: flex;
    gap: 0.5rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.btn-text:hover {
    color: var(--text-main);
}

.tour-highlight {
    position: relative;
    z-index: 9999 !important;
    pointer-events: none; /* Prevent interaction during tour */
    box-shadow: 0 0 0 4px var(--primary), 0 0 20px rgba(99, 102, 241, 0.5) !important;
}

.tour-pulse {
    animation: tourPulse 1.5s ease-out;
}

@keyframes tourPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}


.hero h1 span {
    background: linear-gradient(to right, #6366f1, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    line-height: 1.6;
}

/* Shorten Input */
.shorten-container {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.input-group {
    display: flex;
    gap: 1rem;
}

.input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
}

.options-row {
    margin-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Checkbox Style */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto 8rem;
    padding: 0 2rem;
}

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 1rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-card .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.5;
}

.feature-card.coming-soon {
    position: relative;
    opacity: 0.8;
    cursor: default;
}

.feature-card.coming-soon:hover {
    transform: none;
    background: var(--glass);
    border-color: var(--glass-border);
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content.glass {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    /* Increased from 500px */
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.large-textarea {
    width: 100%;
    min-height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 1.5rem;
    outline: none;
}

.large-textarea:focus {
    border-color: var(--primary);
}

#modal-body h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

#modal-body input,
#modal-body select,
#modal-body textarea {
    width: 100%;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    outline: none;
    font-size: 1rem;
}

#modal-body input:focus,
#modal-body select:focus,
#modal-body textarea:focus {
    border-color: var(--primary);
}

/* Password Toggle Styles */
.auth-input-group {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
    z-index: 10;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary);
}

.auth-input-group label + .password-toggle {
    top: calc(50% + 0.8rem); /* Adjust for label height */
}

.auth-input-group label + input {
    padding-right: 3rem !important;
}


.close-modal,
.close-auth {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .input-group {
        flex-direction: column;
    }
}

/* Result Card */
.result-card {
    text-align: center;
}

.result-card .btn-primary {
    margin-top: 2.5rem;
}

#qr-container img {
    max-width: 200px;
    margin: 2rem 0;
    border-radius: 12px;
    background: white;
    padding: 10px;
}

.copy-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

#copy-btn,
.copy-icon-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

#copy-btn:hover,
.copy-icon-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.copy-success {
    color: var(--accent) !important;
    animation: success-bounce 0.4s ease;
}

@keyframes success-bounce {

    0%,
    100% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1.3);
    }
}

.short-code-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

/* GDPR / EU Trust Section */
.gdpr-trust-section {
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.gdpr-trust-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.gdpr-trust-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.gdpr-trust-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gdpr-flag {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.gdpr-trust-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gdpr-trust-header p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.gdpr-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}

.gdpr-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    cursor: default;
}

.gdpr-badge:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(96, 165, 250, 0.07);
}

.gdpr-badge-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.gdpr-badge-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.4rem;
}

.gdpr-badge-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* -- UX Polish & Trust Signals -- */
.trust-signals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
}

.trust-tag {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.trust-tag i {
    color: var(--accent);
}

.trust-tag.divider {
    height: 12px;
    width: 1px;
    background: var(--glass-border);
}

/* Recent Links */
.recent-link-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.4s ease-out backwards;
}

.recent-link-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
    border-color: var(--primary);
}

.recent-link-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow: hidden;
}

.recent-link-short {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.recent-link-original {
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-link-copy {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.recent-link-copy:hover {
    background: var(--primary);
    border-color: var(--primary);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.btn-loading {
    position: relative !important;
    pointer-events: none !important;
    opacity: 0.8;
}

.btn-loading * {
    visibility: hidden;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    visibility: visible !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Copy Animation */
.copy-success {
    background: var(--accent) !important;
    color: white !important;
    border-color: var(--accent) !important;
    transform: scale(1.05);
}

.copy-success i {
    animation: bounce 0.4s ease-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Input Focus Polish */
#long-url:focus {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

@media (max-width: 640px) {
    .trust-signals {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    .trust-tag.divider {
        display: none;
    }
}