/* CSS Variables & Core Tokens */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-solid: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.15);
    
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-input: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
    
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* GPU Acceleration Utilities */
.btn-primary, .btn-secondary, .modal-content, .phone-frame, .theme-option-card, .dashboard-links-list .link-item-card {
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Main Layout Container */
.app-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Header Styling */
#main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
}

.logo-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.anon-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-login-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-login-link:hover {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.btn-signup-link {
    text-decoration: none;
    background-color: var(--accent-solid);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-signup-link:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.btn-signup-link:active {
    transform: translateY(0);
}

/* Buttons System */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-solid);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-icon {
    padding: 0.7rem;
    aspect-ratio: 1;
    justify-content: center;
}

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

.coffee-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff8eb;
    color: #b45309;
    border: 1px solid #fde68a;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.coffee-donate-btn:hover {
    background: #fef3c7;
    transform: scale(1.02);
}

/* Privacy Indicator */
.privacy-shield {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    cursor: pointer;
}

.shield-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

/* Workspace Wrapper & Routing */
.workspace-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.route-view {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    animation: fadeIn 0.4s ease-out forwards;
}

.route-view.active {
    display: flex;
}

/* 1. LANDING PAGE STYLES */
.landing-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}

@media (max-width: 900px) {
    .landing-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-preview-pane {
        display: flex;
        justify-content: center;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.dashboard-title-funky {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #0f172a;
}

.highlight-yellow {
    position: relative;
    background: linear-gradient(120deg, rgba(254, 240, 138, 0.7) 0%, rgba(254, 240, 138, 0.7) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 80%;
}

.dashboard-subtitle-funky {
    font-family: 'Playpen Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 1.5rem;
}

.underline-blue {
    text-decoration: underline;
    text-decoration-color: #93c5fd;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.dashboard-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 2rem;
}

/* Username Claim Form */
.claim-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    max-width: 500px;
}

.claim-input-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding-left: 0.75rem;
}

.claim-prefix {
    color: #94a3b8;
    font-weight: 600;
    font-size: 1.05rem;
    user-select: none;
}

#claim-username {
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.5rem;
    width: 100%;
    color: var(--text-primary);
}

.claim-helper-text {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
    margin-left: 0.5rem;
}

.mini-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mini-feat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
}

.mini-feat-item i {
    color: var(--accent-solid);
}

/* Feature showcase cards */
.feature-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(0,0,0,0.08);
}

.feature-card-icon {
    font-size: 1.6rem;
    color: var(--accent-solid);
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

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

/* FAQ section */
.faq-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.faq-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.faq-container {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.faq-question i {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-item.active {
    border-color: #cbd5e1;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-solid);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Contact CTA Container */
.cta-container {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

@media (max-width: 700px) {
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
}

.cta-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #1e3a8a;
}

.cta-content p {
    color: #1e40af;
    font-size: 1rem;
    line-height: 1.5;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1e40af;
    color: #ffffff;
    font-weight: 700;
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.cta-btn:hover {
    background: #1e3a8a;
    transform: scale(1.03);
}

/* 2. AUTHENTICATION VIEW */
.auth-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    flex-grow: 1;
}

.btn-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    margin-left: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-back:hover {
    color: var(--text-primary);
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-card);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-main-icon {
    font-size: 2.8rem;
    color: var(--accent-solid);
    margin-bottom: 0.75rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-error-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group input, .settings-group input, .settings-group textarea, .settings-group select {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    outline: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    width: 100%;
    color: var(--text-primary);
}

.form-group input:focus, .settings-group input:focus, .settings-group textarea:focus, .settings-group select:focus {
    border-color: var(--accent-solid);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding-left: 0.8rem;
    transition: var(--transition-smooth);
}

.auth-input-wrapper:focus-within {
    border-color: var(--accent-solid);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-input-wrapper .input-prefix {
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    user-select: none;
}

.auth-input-wrapper input {
    border: none;
    background: transparent;
    padding: 0.7rem 0.5rem;
}

.auth-input-wrapper input:focus {
    box-shadow: none;
}

.password-input-wrapper {
    display: flex;
    position: relative;
    align-items: center;
}

.password-toggle-btn {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 1.5rem 0;
}

.auth-separator::before, .auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-separator span {
    padding: 0 0.75rem;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.7rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: var(--transition-smooth);
}

.btn-google:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.google-svg {
    width: 18px;
    height: 18px;
}

.auth-footer-toggle {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.auth-footer-toggle a {
    color: var(--accent-solid);
    text-decoration: none;
    margin-left: 0.3rem;
}

.auth-footer-toggle a:hover {
    text-decoration: underline;
}

/* 3. CREATOR DASHBOARD VIEW */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: flex-start;
    padding-bottom: 2rem;
}

@media (max-width: 1000px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-preview-sticky {
        display: none !important; /* Hide preview on tablet/mobile dashboard to save space */
    }
}

.dashboard-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-tabs {
    display: flex;
    gap: 0.4rem;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-primary);
}

.tab-btn.active {
    color: var(--accent-solid);
    background: #eff6ff;
}

.tab-content-panel {
    flex-grow: 1;
}

.tab-pane {
    display: none;
    flex-direction: column;
    animation: fadeIn 0.3s ease forwards;
}

.tab-pane.active {
    display: flex;
}

.tab-pane-header {
    margin-bottom: 1.5rem;
}

.tab-pane-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.tab-pane-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.settings-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.settings-card-header i {
    color: var(--accent-solid);
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    text-align: left;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.settings-helper-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Edit links list */
.dashboard-links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-item-card {
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    transition: var(--transition-smooth);
}

.link-item-card:hover {
    border-color: #cbd5e1;
}

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

.drag-handle {
    cursor: grab;
    color: #94a3b8;
    padding: 0.2rem 0.5rem;
}

.drag-handle:active {
    cursor: grabbing;
}

.link-card-main-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

@media (max-width: 600px) {
    .link-card-main-inputs {
        grid-template-columns: 1fr;
    }
}

.link-card-sub-settings {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
}

.link-setting-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.link-setting-item label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.link-setting-item select, .link-setting-item input[type="text"] {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

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

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

.btn-delete-link {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    margin-left: auto;
}

.btn-delete-link:hover {
    background: #fef2f2;
}

/* Avatar edit pic */
.avatar-edit-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.avatar-edit-preview {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--border-color);
}

.avatar-edit-actions {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.file-input {
    display: none;
}

/* Themes selectors */
.theme-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.8rem;
}

.theme-option-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.6rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    font-size: 0.8rem;
    font-weight: 700;
}

.theme-option-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.theme-option-card.active {
    border-color: var(--accent-solid);
    background: #eff6ff;
}

.theme-option-preview {
    height: 60px;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    position: relative;
    overflow: hidden;
}

.theme-option-preview .mini-bubble {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

.theme-option-preview .mini-bar {
    width: 35px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.3);
}

.button-selector-row {
    display: flex;
    gap: 0.5rem;
}

.btn-shape-select, .btn-style-select {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-shape-select:hover, .btn-style-select:hover {
    background: #f1f5f9;
}

.btn-shape-select.active, .btn-style-select.active {
    background: var(--accent-solid);
    color: #fff;
    border-color: var(--accent-solid);
}

/* QR Code tab settings */
.qr-card-control {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-preview-wrapper {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.color-picker-row input[type="color"] {
    width: 45px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}

.color-hex-label {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Analytics Tab styling */
.stats-overview-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 500px) {
    .stats-overview-row {
        grid-template-columns: 1fr;
    }
}

.stat-bubble {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.stat-bubble-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.stat-bubble-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.chart-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Right Sticky Mobile Preview Layout */
.dashboard-preview-sticky {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-card);
}

.preview-address-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.preview-address-badge span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Phone Mockup Housing */
.phone-mockup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-frame {
    width: 320px;
    height: 600px;
    border-radius: 36px;
    border: 11px solid #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 4px #475569;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Top Notch design for mockup */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 18px;
    background: #1e293b;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 100;
}

.phone-screen-content {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 2.2rem 1.25rem 1.25rem 1.25rem;
    box-sizing: border-box;
    position: relative;
}

.phone-screen-content::-webkit-scrollbar {
    display: none;
}

/* Preview Header */
.preview-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.preview-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 0.75rem auto;
    background-size: cover;
    background-position: center;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.preview-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.preview-bio {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.preview-links-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

/* Clickable Bio Links */
.preview-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-spring);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    width: 100%;
}

.preview-link-btn i {
    position: absolute;
    left: 1.2rem;
    font-size: 1.05rem;
}

.preview-link-btn:hover {
    transform: scale(1.02);
}

.preview-link-badge {
    position: absolute;
    right: 0.8rem;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: #fff;
    letter-spacing: 0.5px;
}

.badge-hot {
    background: #ef4444;
}

.badge-new {
    background: #10b981;
}

.preview-socials {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.social-icon-btn {
    font-size: 1.15rem;
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* 4. PUBLIC PROFILE RENDER VIEW */
#profile-view {
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    min-height: 80vh;
}

.public-profile-content {
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
}

.profile-header-block {
    margin-bottom: 2rem;
}

.public-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    background-size: cover;
    background-position: center;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.public-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.public-bio {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 420px;
    margin: 0 auto;
}

.public-links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.public-socials-container {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.public-profile-footer {
    display: flex;
    justify-content: center;
}

.profile-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.profile-brand-link:hover {
    background: rgba(0, 0, 0, 0.08);
}

.footer-logo-img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

/* 5. PROFILE NOT FOUND / CLAIM VIEW */
.notfound-card-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 3rem 1rem;
}

.notfound-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.notfound-icon {
    font-size: 2.5rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.notfound-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

.claim-badge-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* THEMES IMPLEMENTATION */

/* Theme 1: Sunset Glow */
.theme-sunset {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    color: #ffffff;
}
.theme-sunset .preview-bio, .theme-sunset .public-bio {
    color: rgba(255, 255, 255, 0.8);
}
.theme-sunset .preview-link-btn, .theme-sunset .public-links-container .preview-link-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.theme-sunset .preview-link-btn:hover, .theme-sunset .public-links-container .preview-link-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}
.theme-sunset .social-icon-btn, .theme-sunset .public-socials-container .social-icon-btn {
    color: #ffffff;
}
.theme-sunset .profile-brand-link {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Theme 2: Cyberpunk Neon */
.theme-cyberpunk {
    background: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 100%);
    color: #38bdf8;
    font-family: monospace;
}
.theme-cyberpunk .preview-title, .theme-cyberpunk .public-title {
    color: #f43f5e;
    text-shadow: 0 0 5px rgba(244, 63, 94, 0.3);
}
.theme-cyberpunk .preview-bio, .theme-cyberpunk .public-bio {
    color: #94a3b8;
}
.theme-cyberpunk .preview-link-btn, .theme-cyberpunk .public-links-container .preview-link-btn {
    background: #020617;
    border: 1.5px solid #ec4899;
    color: #ec4899;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.2);
}
.theme-cyberpunk .preview-link-btn:hover, .theme-cyberpunk .public-links-container .preview-link-btn:hover {
    background: #0f172a;
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}
.theme-cyberpunk .social-icon-btn, .theme-cyberpunk .public-socials-container .social-icon-btn {
    color: #38bdf8;
}
.theme-cyberpunk .profile-brand-link {
    background: #020617;
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

/* Theme 3: Glassmorphism Frost */
.theme-frost {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
}
.theme-frost .preview-bio, .theme-frost .public-bio {
    color: #cbd5e1;
}
.theme-frost .preview-link-btn, .theme-frost .public-links-container .preview-link-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.theme-frost .preview-link-btn:hover, .theme-frost .public-links-container .preview-link-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}
.theme-frost .social-icon-btn, .theme-frost .public-socials-container .social-icon-btn {
    color: #f8fafc;
}
.theme-frost .profile-brand-link {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Theme 4: Comic Sketch */
.theme-comic {
    background: #ffffff;
    color: #000000;
}
.theme-comic .preview-avatar, .theme-comic .public-avatar {
    border: 3.5px solid #000000 !important;
    box-shadow: 4px 4px 0 #000000 !important;
}
.theme-comic .preview-link-btn, .theme-comic .public-links-container .preview-link-btn {
    background: #ffffff;
    border: 3px solid #000000;
    color: #000000;
    box-shadow: 4px 4px 0 #000000;
}
.theme-comic .preview-link-btn:hover, .theme-comic .public-links-container .preview-link-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000000;
}
.theme-comic .social-icon-btn, .theme-comic .public-socials-container .social-icon-btn {
    color: #000000;
}
.theme-comic .profile-brand-link {
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    box-shadow: 2px 2px 0 #000000;
}

/* Theme 5: Classic Slate */
.theme-slate {
    background: #f1f5f9;
    color: #0f172a;
}
.theme-slate .preview-bio, .theme-slate .public-bio {
    color: #64748b;
}
.theme-slate .preview-link-btn, .theme-slate .public-links-container .preview-link-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.theme-slate .preview-link-btn:hover, .theme-slate .public-links-container .preview-link-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.theme-slate .social-icon-btn, .theme-slate .public-socials-container .social-icon-btn {
    color: #334155;
}
.theme-slate .profile-brand-link {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

/* Button shapes override */
.shape-sharp {
    border-radius: 0px !important;
}
.shape-rounded {
    border-radius: 12px !important;
}
.shape-pill {
    border-radius: 9999px !important;
}

/* Button style overrides */
.style-solid {
    background: currentColor !important;
    color: var(--theme-text-color, #fff) !important;
}
.theme-sunset .style-solid { background: #ffffff !important; color: #ff7e5f !important; }
.theme-cyberpunk .style-solid { background: #ec4899 !important; color: #020617 !important; }
.theme-frost .style-solid { background: #ffffff !important; color: #0f172a !important; }
.theme-comic .style-solid { background: #000000 !important; color: #ffffff !important; }
.theme-slate .style-solid { background: #0f172a !important; color: #ffffff !important; }

.style-outline {
    background: transparent !important;
    border: 2px solid currentColor !important;
    box-shadow: none !important;
}

/* Micro animations */
.anim-pulse {
    animation: preview-pulse 2s infinite alternate;
}
.anim-wiggle {
    animation: preview-wiggle 1.5s infinite;
}
.anim-bounce {
    animation: preview-bounce 2s infinite;
}

/* Footer styling */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 1rem;
}

footer a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--text-primary);
}

.mellowkraft-link {
    font-weight: 700;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
}

/* Modals Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
    animation: fadeIn 0.25s ease forwards;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    text-align: center;
    position: relative;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.modal-content h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Coffee modal QR */
.qr-code-wrapper {
    background: #ffffff;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 220px;
    height: 220px;
    margin: 0 auto 1.25rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.upi-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upi-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.78rem;
}

.upi-label {
    font-weight: 700;
    color: #64748b;
}

.upi-val {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-primary);
}

/* Legal modal tabbed */
.legal-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    height: 80vh;
    max-height: 580px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.legal-tabs {
    display: flex;
    gap: 0.5rem;
}

.legal-tab-btn {
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.legal-tab-btn:hover {
    color: var(--text-primary);
}

.legal-tab-btn.active {
    color: var(--accent-solid);
    background: #eff6ff;
}

.legal-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.legal-close-btn:hover {
    color: var(--text-primary);
}

.legal-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.75rem;
    text-align: left;
}

.legal-tab-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.legal-update-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.legal-tab-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-tab-content p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1rem;
}

/* Secret Love Modal layout styling */
.love-modal-content {
    background: #fff5f7;
    border: 1px solid #fbcfe8;
    color: #be185d;
    max-width: 460px;
    position: relative;
    overflow: hidden;
}

.btn-love {
    background: #db2777;
    box-shadow: 0 4px 10px rgba(219, 39, 119, 0.3);
}

.btn-love:hover {
    background: #be185d;
}

.love-avatar-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.love-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-family: 'Playpen Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.06);
}

.shiv-avatar { background: #3b82f6; }
.divi-avatar { background: #ec4899; }

.love-heart-divider {
    font-size: 1.8rem;
    animation: heart-beat 1s infinite alternate;
}

.love-hearts-float {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.love-hearts-float i {
    position: absolute;
    opacity: 0.15;
    color: #ec4899;
}

.floating-heart-1 { top: 10%; left: 10%; font-size: 2.5rem; animation: float-slow 5s infinite; }
.floating-heart-2 { top: 50%; right: 10%; font-size: 1.8rem; animation: float-medium 6s infinite; }
.floating-heart-3 { bottom: 10%; left: 30%; font-size: 2.2rem; animation: float-fast 4s infinite; }

/* CSS Animations Definition */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes heart-beat {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(15deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-10deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(8deg); }
}

/* Link animations presets */
@keyframes preview-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.025); box-shadow: 0 4px 10px rgba(255,255,255,0.06); }
}

@keyframes preview-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-1.5deg); }
    75% { transform: rotate(1.5deg); }
}

@keyframes preview-bounce {
    0%, 100%, 20%, 50%, 80% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

/* Auth Method Tabs Selector */
.auth-method-selector {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.method-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: none;
    border: none;
    padding: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.method-btn:hover {
    color: var(--text-primary);
}

.method-btn.active {
    background: #ffffff;
    color: var(--accent-solid);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Alert statuses in settings panel */
.alert-status {
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: left;
}

.alert-status-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-status-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-status-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Danger Action Button */
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-danger:active {
    transform: translateY(0);
}

/* User Header Profile Section */
.user-header-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    margin-right: 0.5rem;
    transition: var(--transition-smooth);
}

.user-header-profile:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.user-header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.user-header-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Logout Button */
.btn-logout {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.25rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    color: #ef4444;
    transform: scale(1.15);
}

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

/* Unsaved Changes Floating Bar */
.unsaved-changes-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.95); /* Dark slate premium glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
    opacity: 0;
    width: calc(100% - 2rem);
    max-width: 520px;
}

.unsaved-changes-bar.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.unsaved-changes-bar .bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    color: #f8fafc;
    font-weight: 500;
    font-size: 0.9rem;
}

.unsaved-changes-bar .bar-content span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unsaved-changes-bar .bar-content i {
    color: #fbbf24;
}

.unsaved-changes-bar .bar-actions {
    display: flex;
    gap: 0.5rem;
}

.unsaved-changes-bar .btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.unsaved-changes-bar .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.3);
}

.unsaved-changes-bar .btn-save {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 0.45rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.unsaved-changes-bar .btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.unsaved-changes-bar .btn-save:active {
    transform: translateY(0);
}

/* Premium Loading Splash Screen */
.app-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0f172a; /* Slate 900 background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

.app-loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-spinner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.loading-logo-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(99, 102, 241, 0) 70%);
    filter: blur(8px);
    z-index: 1;
    animation: pulseGlow 2s infinite ease-in-out;
}

.loading-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 2;
    margin-bottom: 1.5rem;
    animation: floatLogo 3s infinite ease-in-out;
}

.loading-bar-track {
    width: 140px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    z-index: 2;
}

.loading-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #2563eb);
    border-radius: 999px;
    transform: translateX(-100%);
    animation: loadingProgress 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-text {
    font-family: 'Outfit', sans-serif;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 2;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(0.95); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

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

/* Super Admin Control Panel Layout */
.admin-dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-xl);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    gap: 2rem;
}

.admin-headline {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.5rem 0;
}

.admin-stats-summary {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.admin-stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.admin-stat-card .stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
}

.admin-stat-card .status-online {
    color: #10b981;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.admin-stat-card .status-online i {
    font-size: 0.6rem;
    animation: pulseStatus 2s infinite ease-in-out;
}

@keyframes pulseStatus {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.admin-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-search-wrapper {
    position: relative;
    flex-grow: 1;
}

.admin-search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.admin-search-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.admin-search-wrapper input:focus {
    outline: none;
    border-color: #f43f5e;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.15);
}

.admin-table-wrapper {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    overflow: hidden;
}

.admin-profiles-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-profiles-table th {
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-profiles-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-profiles-table tr:last-child td {
    border-bottom: none;
}

.admin-profiles-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-profile-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-profile-username {
    font-weight: 600;
    color: #f8fafc;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.admin-profile-username:hover {
    color: #fb7185;
}

.admin-badge-theme {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.admin-badge-theme.sunset { background: rgba(255, 126, 95, 0.15); color: #ff7e5f; }
.admin-badge-theme.cyberpunk { background: rgba(255, 0, 127, 0.15); color: #ff007f; }
.admin-badge-theme.frost { background: rgba(224, 234, 252, 0.15); color: #94a3b8; }
.admin-badge-theme.comic { background: rgba(255, 255, 255, 0.15); color: #f8fafc; }
.admin-badge-theme.slate { background: rgba(30, 41, 59, 0.4); color: #cbd5e1; }

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-admin-view {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-admin-view:hover {
    background: #3b82f6;
    color: white;
}

.btn-admin-details {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: #fb7185;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-admin-details:hover {
    background: #f43f5e;
    color: white;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

.btn-admin-delete {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-admin-delete:hover {
    background: #ef4444;
    color: white;
}

/* Header Admin Console Badge */
.header-admin-badge {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #fb7185;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.header-admin-badge:hover {
    background: #f43f5e;
    color: white;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
}

/* Advanced Admin Controls & Responsive Extensions */
.admin-select {
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.admin-select:focus {
    outline: none;
    border-color: #f43f5e !important;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.15);
}

.best-creator-card {
    border-color: rgba(251, 191, 36, 0.25) !important;
    background: rgba(251, 191, 36, 0.04) !important;
}

@media (max-width: 900px) {
    .admin-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-filter-group {
        flex-wrap: wrap;
        width: 100%;
    }
    .admin-filter-group select, .admin-filter-group button {
        flex-grow: 1;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .admin-stats-summary {
        width: 100%;
        flex-wrap: wrap;
    }
    .admin-stat-card {
        flex: 1 1 calc(50% - 0.5rem);
        align-items: flex-start;
    }
}

/* Super Admin Detail Modal Styles */
.admin-modal-card {
    max-width: 850px;
    width: 90%;
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(244, 63, 94, 0.15) !important;
    color: #e2e8f0;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-modal-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.admin-modal-user-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.admin-modal-user-info p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0.25rem 0 0.5rem 0;
}

.admin-modal-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-modal-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
}

/* Modal Navigation Tabs */
.admin-modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
}

.admin-modal-tab-btn {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-modal-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.admin-modal-tab-btn.active {
    color: #ffffff;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.25);
}

.admin-modal-tab-content {
    display: none;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.admin-modal-tab-content.active {
    display: block;
}

/* Grid & Section details */
.admin-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.detail-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.25rem;
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: #94a3b8;
    font-weight: 500;
}

.detail-val {
    color: #f8fafc;
    font-weight: 600;
}

.detail-val.font-mono {
    font-family: monospace;
    color: #cbd5e1;
}

/* Visitor Analytics graphs */
.visitor-analytics-container {
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.visitor-analytics-loading, .visitor-analytics-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

.visitor-analytics-loading i {
    font-size: 1.5rem;
    color: #fb7185;
}

.visitor-analytics-empty i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.15);
}

.visitor-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.25rem;
}

.analytics-card h5 {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 700;
}

.bar-chart-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bar-chart-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bar-chart-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
}

.bar-chart-label {
    color: #cbd5e1;
}

.bar-chart-value {
    color: #f8fafc;
    font-weight: 600;
}

.bar-chart-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.bar-chart-fill {
    height: 100%;
    background: linear-gradient(90deg, #f43f5e, #fb7185);
    border-radius: 4px;
    width: 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Link performance table */
.link-performance-container {
    overflow-x: auto;
}

.admin-links-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-links-table th {
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-links-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 0.85rem;
    vertical-align: middle;
}

.admin-links-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-link-title {
    font-weight: 600;
    color: #ffffff;
}

.admin-link-url {
    font-size: 0.75rem;
    color: #94a3b8;
    word-break: break-all;
}

.admin-link-badge-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-link-badge-status.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.admin-link-badge-status.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Interactive Widgets & Sections Styles */
.profile-section-title {
    width: 100%;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: inherit;
    opacity: 0.95;
    letter-spacing: 0.02em;
    font-family: inherit;
}

.profile-separator {
    width: 80%;
    margin: 1.5rem auto;
    border: none;
    height: 1px;
    background: currentColor;
    opacity: 0.15;
}

.widget-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    box-sizing: border-box;
    color: inherit;
    margin-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-comic .widget-card {
    background: #ffffff !important;
    border: 3px solid #000000 !important;
    border-radius: 0px !important;
    color: #000000 !important;
    box-shadow: 6px 6px 0px #000000 !important;
}

.theme-frost .widget-card {
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #1e293b !important;
}

.widget-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.widget-card-header i {
    font-size: 1.2rem;
    color: #fb7185;
}

.theme-comic .widget-card-header i {
    color: #000000 !important;
}

.widget-card-header h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.widget-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.widget-input, .widget-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: inherit;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.widget-input::placeholder, .widget-textarea::placeholder {
    color: currentColor;
    opacity: 0.4;
}

.widget-input:focus, .widget-textarea:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.theme-comic .widget-input, .theme-comic .widget-textarea {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 0px !important;
    color: #000000 !important;
}

.theme-comic .widget-input:focus, .theme-comic .widget-textarea:focus {
    background: #f8fafc !important;
}

.theme-frost .widget-input, .theme-frost .widget-textarea {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}

.widget-btn {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s;
    background: #fb7185;
    color: white;
}

.widget-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.widget-btn:active {
    transform: translateY(0);
}

.theme-comic .widget-btn {
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 0px !important;
    border: 2px solid #000000 !important;
    box-shadow: 3px 3px 0px #ffffff !important;
}

.theme-frost .widget-btn {
    background: #1e293b !important;
    color: #ffffff !important;
}

/* Inbox & Messages Card Styling */
.inbox-message-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    transition: var(--transition-smooth);
}

.inbox-message-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.inbox-message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.inbox-message-sender {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
}

.inbox-message-email {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-family: monospace;
}

.inbox-message-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.inbox-message-body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e2e8f0;
    word-break: break-word;
    margin-top: 0.5rem;
}

.btn-message-delete {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.95rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-message-delete:hover {
    opacity: 1;
}

/* Custom theme preview & runtime overrides */
.font-inter {
    font-family: 'Inter', sans-serif !important;
}

.font-outfit {
    font-family: 'Outfit', sans-serif !important;
}

.font-caveat {
    font-family: 'Caveat', cursive !important;
}

.font-playpen {
    font-family: 'Playpen Sans', cursive !important;
}

