/* Kioju Japanese Design System - Complete CSS Framework */
/* 
RECENT IMPROVEMENTS:
- Consolidated duplicate .premium-badge rules with specific selectors
- Unified .form-row layouts with clear 4-col vs 2-col distinction  
- Removed CSS conflicts that caused display issues
- Better section organization and commenting

CSS CLEANUP (January 2025):
- Removed duplicate .text-center definitions (was 4, now 1)
- Removed duplicate .mb-4 and .mb-6 margin utilities (was 3 each, now 1 each)
- Removed conflicting .error-message-box definition
- Removed duplicate .feature-card definition that was overriding success/warning styles

BETA CLEANUP (August 2025):
- Removed duplicate .form-row definitions (conflicting flex vs grid implementations)
- Consolidated multiple .mt-4 definitions (was 3, now 1)  
- Removed duplicate .mb-8 utility class
- Standardized spacing utilities to use CSS variables consistently
- Removed all "REMOVED" comment clutter - cleaned up 15 redundant comment lines
- File size reduced by ~230 lines through systematic cleanup
*/

/* ===== COLOR PALETTE ===== */
:root {
    /* Core Colors - High Contrast Natural Theme */
    --color-primary: #2C3E50;
    /* Deep Blue-Grey (Earth) */
    --color-background: #FDFDFD;
    /* Very Light Background */
    --color-accent1: #2E5D3E;
    /* Forest Green (Balanced) */
    --color-accent2: #225A3D;
    /* Deep Pine Green (Readable) */
    --color-lines: #34495E;
    /* Deep Grey-Blue (Earth) */
    --color-error: #E74C3C;
    /* Clear Red */
    --color-text: #2C2C2C;
    /* Very Dark Grey Text */
    --color-cherry: #4A7C59;
    /* Medium Pine Green Accent */
    --color-cream: #FFFFFF;
    /* Warm Cream */

    /* Extended Palette */
    --color-success: #2E5D3E;
    /* Forest Green (Success) */
    --color-warning: #F39C12;
    /* Warm Orange (Fire) */
    --color-info: #4A7C59;
    /* Medium Forest Green (Info) */
    --color-light: #F8F9FA;
    /* Very Light Grey */
    --color-muted: #6C757D;
    /* Medium Grey for Muted Text */

    /* Semantic Colors */
    --color-border: rgba(0, 0, 0, 0.1);
    /* Light Grey Border */
    --color-shadow: rgba(0, 0, 0, 0.08);
    /* Subtle Black Shadow */
    --color-overlay: rgba(250, 250, 250, 0.6);
    /* Nearly White Overlay */

    /* RGB Values for rgba() usage */
    --color-lines-rgb: 52, 73, 94;
    --color-text-rgb: 44, 44, 44;
    --color-primary-rgb: 44, 62, 80;

    /* Gradients */
    --gradient-warm: linear-gradient(135deg, #FFFFFF 0%, var(--color-background) 100%);
    --gradient-accent: linear-gradient(90deg, var(--color-accent1), var(--color-accent2));
    --gradient-natural: linear-gradient(135deg, var(--color-accent1) 0%, var(--color-accent2) 100%);

    /* Typography Scale */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    --font-5xl: 3rem;

    /* Spacing Scale */
    --space-0-5: 0.125rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-15: 3.75rem;
    /* 60px equivalent */
    --space-16: 4rem;
    --space-20: 5rem;

    /* Additional spacing for legacy px values */
    --space-2px: 2px;
    --space-4px: 4px;
    --space-6px: 6px;
    --space-8px: 8px;
    --space-10px: 10px;
    --space-12px: 12px;
    --space-15px: 15px;
    --space-16px: 16px;
    --space-20px: 20px;
    --space-25px: 25px;
    --space-30px: 30px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 8px 25px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
    --shadow-focus: 0 0 0 3px rgba(46, 93, 62, 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle Texture Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(46, 93, 62, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: -1;
}

/* ===== TYPOGRAPHY SYSTEM ===== */
.font-sans {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.font-serif {
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
}

.font-mono {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
}

/* Japanese Text Styles */
.text-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.text-zen {
    font-style: italic;
    color: var(--color-accent1);
    text-align: center;
    line-height: 2;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--font-4xl);
}

h2 {
    font-size: var(--font-3xl);
}

h3 {
    font-size: var(--font-2xl);
}

h4 {
    font-size: var(--font-xl);
}

h5 {
    font-size: var(--font-lg);
}

h6 {
    font-size: var(--font-base);
}

/* Text Utilities */
.text-xs {
    font-size: var(--font-xs);
}

.text-sm {
    font-size: var(--font-sm);
}

.text-base {
    font-size: var(--font-base);
}

.text-lg {
    font-size: var(--font-lg);
}

.text-xl {
    font-size: var(--font-xl);
}

.text-2xl {
    font-size: var(--font-2xl);
}

.text-3xl {
    font-size: var(--font-3xl);
}

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

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

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

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

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

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Font Size Utilities */
.font-xs {
    font-size: var(--font-xs);
}

.font-sm {
    font-size: var(--font-sm);
}

.font-base {
    font-size: var(--font-base);
}

.font-lg {
    font-size: var(--font-lg);
}

.font-xl {
    font-size: var(--font-xl);
}

.font-2xl {
    font-size: var(--font-2xl);
}

.font-3xl {
    font-size: var(--font-3xl);
}

.font-4xl {
    font-size: var(--font-4xl);
}

.font-5xl {
    font-size: var(--font-5xl);
}

/* ===== LAYOUT SYSTEM ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 768px;
}

.container-lg {
    max-width: 1024px;
}

.container-xl {
    max-width: 1280px;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

/* Spacing Utilities */
.m-0 {
    margin: 0;
}

.m-1 {
    margin: var(--space-1);
}

.m-2 {
    margin: var(--space-2);
}

.m-4 {
    margin: var(--space-4);
}

.m-6 {
    margin: var(--space-6);
}

.m-8 {
    margin: var(--space-8);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.p-2 {
    padding: var(--space-2);
}

.p-4 {
    padding: var(--space-4);
}

.p-6 {
    padding: var(--space-6);
}

.p-8 {
    padding: var(--space-8);
}

/* ===== COMPONENT SYSTEM ===== */

/* Cards */
.card {
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.card-header-with-button .card-title {
    margin: 0;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .card-header-with-button {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .card-header-with-button .btn {
        width: 100%;
    }
}

.card-interactive {
    cursor: pointer;
}

.card-bamboo {
    border-left: 4px solid var(--color-lines);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.card-zen {
    background: var(--color-background);
    border: 2px solid var(--color-accent2);
    text-align: center;
    font-style: italic;
}

.card-zen::before,
.card-zen::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent1);
}

.card-zen::before {
    top: -6px;
    left: -6px;
    border-right: none;
    border-bottom: none;
}

.card-zen::after {
    bottom: -6px;
    right: -6px;
    border-left: none;
    border-top: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-size: var(--font-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--color-accent1);
    color: var(--color-cream);
    border-color: var(--color-accent1);
}

.btn-primary:hover {
    background: var(--color-lines);
    border-color: var(--color-lines);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-accent2);
    color: var(--color-cream);
    border-color: var(--color-accent2);
}

.btn-outline {
    background: var(--color-background);
    color: var(--color-accent1);
    border-color: var(--color-accent1);
}

.btn-outline:hover {
    background: var(--color-accent1);
    color: #FFFFFF;
}

.btn-success {
    background: var(--color-success);
    color: var(--color-cream);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-error {
    background: var(--color-error);
    color: var(--color-cream);
}

.btn-error:hover {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--color-error);
    color: var(--color-cream);
    border-color: var(--color-error);
}

.btn-danger:hover {
    background: #DC2626;
    border-color: #DC2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: #F59E0B;
    color: var(--color-cream);
    border-color: #F59E0B;
}

.btn-warning:hover {
    background: #D97706;
    border-color: #D97706;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-info {
    background: #3B82F6;
    color: var(--color-cream);
    border-color: #3B82F6;
}

.btn-info:hover {
    background: #2563EB;
    border-color: #2563EB;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-gray {
    background: #6B7280;
    color: var(--color-cream);
    border-color: #6B7280;
}

.btn-gray:hover {
    background: #4B5563;
    border-color: #4B5563;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-linkedin {
    background: #0077B5;
    color: var(--color-cream);
    border-color: #0077B5;
}

.btn-linkedin:hover {
    background: #005885;
    border-color: #005885;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-twitter {
    background: #000000;
    color: var(--color-cream);
    border-color: #000000;
}

.btn-twitter:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-lg);
}

.btn-large {
    padding: var(--space-5) var(--space-8);
    font-size: var(--font-xl);
    font-weight: 600;
}

.btn-block {
    width: 100%;
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: var(--space-8) var(--space-4);
}

.empty-icon {
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.empty-title {
    font-size: var(--font-2xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.empty-text {
    font-size: var(--font-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    line-height: 1.5;
}

/* Action Buttons - consistent styling for all action button groups */
.action-buttons {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-3);
    justify-content: center;
    align-items: center;
}

.action-buttons .btn {
    font-size: var(--font-xs);
    padding: var(--space-1) var(--space-3);
    height: 32px;
    /* Fixed height for consistency */
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-decoration: none;
    /* Ensure anchor tags don't have underlines */
}

/* Specific styling for table row action buttons */
.modern-table .action-buttons {
    margin-top: 0;
    justify-content: center;
}

/* Specific styling for collection card action buttons */
.collection-item .action-buttons {
    margin-top: var(--space-3);
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
        height: 40px;
        /* Slightly larger on mobile */
    }

    .collection-item .action-buttons {
        justify-content: center;
    }
}

/* ===== FORM SYSTEM - CONSOLIDATED ===== */

/* Form Elements */
.form-group {
    margin-bottom: var(--space-6);
}

/* Horizontal form row for filters - 4 column layout (search, collection, privacy, buttons) */
.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: var(--space-4);
    align-items: end;
}

.form-row .form-group {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .form-row .form-group {
        margin-bottom: var(--space-4);
    }

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

/* Color Preview for Collection Customization */
.color-preview-box {
    width: 100%;
    height: 60px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: linear-gradient(45deg, #3498db, #2c3e50);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.color-preview-box:hover {
    box-shadow: var(--shadow-md);
}

.color-preview-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.1) 50%, transparent 50%, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 20px 20px;
    animation: diagonal-stripes 2s linear infinite;
}

@keyframes diagonal-stripes {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 20px 20px;
    }
}

.color-picker-section {
    margin-top: var(--space-4);
}

.color-picker-section .form-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

/* Theme Preset Selector with Color Swatches */
.custom-select-wrapper {
    position: relative;
    margin-bottom: var(--space-4);
}

.custom-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-background);
    cursor: pointer;
    transition: var(--transition-normal);
    min-height: 44px;
}

.custom-select:hover {
    border-color: var(--color-accent1);
    box-shadow: var(--shadow-sm);
}

.custom-select.open {
    border-color: var(--color-accent1);
    box-shadow: var(--shadow-focus);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.selected-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
}

.dropdown-arrow {
    color: var(--color-text-secondary);
    transition: var(--transition-normal);
}

.custom-select.open .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-background);
    border: 1px solid var(--color-accent1);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--color-border-light);
}

.option:last-child {
    border-bottom: none;
}

.option:hover {
    background: var(--color-hover);
}

.option.selected {
    background: var(--color-accent1);
    color: var(--color-cream);
}

.color-swatch {
    width: 24px;
    height: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

.option.selected .color-swatch {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Remove old theme preset wrapper styles */
.theme-preset-wrapper,
.theme-preset-select {
    display: none;
}

/* Active filters styling */
.active-filters {
    margin-top: var(--space-4);
    padding: var(--space-3);
    background: var(--color-light-green);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.filter-tag {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    margin: 0 var(--space-2) var(--space-1) 0;
    font-weight: 500;
}

/* Filter form button alignment */
.form-row .form-group:last-child {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.form-row .form-group:last-child .btn {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-primary);
    font-weight: 500;
    font-size: var(--font-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-cream);
    color: var(--color-text);
    font-size: var(--font-base);
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent1);
    box-shadow: 0 0 0 3px rgba(156, 131, 95, 0.1);
    background: var(--color-light);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    border-color: var(--color-error);
}

.form-error-message {
    color: var(--color-error);
    font-size: var(--font-sm);
    margin-top: var(--space-1);
}

.form-help {
    color: var(--color-muted);
    font-size: var(--font-sm);
    margin-top: var(--space-1);
}

.form-help-normal {
    color: var(--color-muted);
    font-size: var(--font-base);
    margin-top: var(--space-2);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-4) 0;
}

.nav-item {
    padding: var(--space-2) var(--space-4);
    color: var(--color-accent1);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    position: relative;
}

.nav-item:hover {
    background: var(--color-accent1);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.nav-item.active {
    background: var(--color-accent2);
    color: #FFFFFF;
}

/* Header */
.header {
    background: var(--gradient-warm);
    border-bottom: 2px solid var(--color-lines);
    padding: var(--space-8) 0;
    margin-bottom: var(--space-16);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
}

.logo img {
    height: 60px;
    width: auto;
    margin-right: var(--space-4);
    filter: sepia(20%) saturate(80%) hue-rotate(10deg);
}

.logo-text {
    font-size: var(--font-5xl);
    font-weight: 200;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.tagline {
    color: var(--color-accent1);
    font-size: var(--font-lg);
    font-weight: 400;
    font-style: italic;
    text-align: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-lines) 0%, var(--color-primary) 100%);
    color: var(--color-cream);
    padding: var(--space-16) var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: var(--space-16);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(163, 177, 138, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 180, 184, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: var(--font-5xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: var(--font-xl);
    opacity: 0.95;
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ===== Profile Page Styles ===== */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent1) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.2"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.15"/></svg>');
    pointer-events: none;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    position: relative;
    z-index: 1;
}

.success-message-box,
.error-message-box {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.success-message-box {
    border-left-color: var(--color-success);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.error-message-box {
    border-left-color: var(--color-error);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.success-message-text,
.error-message-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

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

.error-message-text {
    color: var(--color-error);
}

.success-message-details,
.error-message-details {
    color: #666;
    line-height: 1.5;
}

.philosophy-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .grid-layout {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
}

.info-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-info {
    color: #3b82f6 !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-error {
    color: var(--color-error) !important;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

@media (min-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(74, 144, 226, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-symbol {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.feature-card--premium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.feature-card--danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: var(--color-error);
}

.feature-card--danger .feature-symbol {
    color: var(--color-error);
}

.feature-card--success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: var(--color-success);
}

.feature-card--success .feature-symbol {
    color: var(--color-success);
}

.feature-card--warning {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: var(--color-error);
}

.feature-card--warning .feature-symbol {
    color: var(--color-error);
}

/* Premium badge for feature cards - positioned overlay */
.feature-card .premium-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(15deg);
    z-index: 2;
    white-space: nowrap;
}

/* Premium Comparison Section */
.comparison-section {
    margin-bottom: var(--space-8);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
    max-width: 800px;
    margin: 0 auto;
}

.plan-card {
    background: var(--color-background);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    transition: all 0.3s ease;
}

.plan-card--free {
    border-color: var(--color-border);
}

.plan-card--premium {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-background) 0%, #f8fafc 100%);
}

.plan-card--featured {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 600;
    white-space: nowrap;
}

.plan-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.plan-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.plan-price {
    font-size: var(--font-3xl);
    font-weight: 800;
    color: var(--color-primary);
}

.price-period {
    font-size: var(--font-lg);
    font-weight: 400;
    color: var(--color-text-muted);
}

.plan-features {
    margin-bottom: var(--space-6);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    font-size: var(--font-sm);
    line-height: 1.4;
}

.feature-item--included {
    color: var(--color-success);
}

.feature-item--excluded {
    color: var(--color-text-muted);
    opacity: 0.7;
}

.plan-status {
    text-align: center;
    padding: var(--space-3);
    background: var(--color-accent);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-sm);
}

.plan-card--premium .plan-status {
    background: var(--color-primary);
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .plan-card--featured {
        transform: none;
    }
}

/* Step Number Badge for Premium Process */
.step-number-badge {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.api-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.section-title-blue {
    color: #3b82f6;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-description-blue {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.api-key-display {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.api-key-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    padding: 12px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.api-key-container.api-key-generated {
    background: #ecfdf5;
    border-color: var(--color-success);
}

.api-key-container.api-key-legacy {
    background: #fef3c7;
    border-color: #f59e0b;
    border-style: dashed;
}

.api-key-value-container {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #374151;
    min-height: 20px;
}

.api-key-value,
.api-key-hidden {
    word-break: break-all;
    line-height: 1.4;
}

/* API Key visibility classes - CSP compliant */
.api-key-value.hidden,
.api-key-hidden.hidden {
    display: none !important;
}

.api-key-value.visible,
.api-key-hidden.visible {
    display: inline !important;
}

/* Copy notification - CSP compliant */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    z-index: 10000;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* API section spacing - CSP compliant */
.api-section {
    margin-bottom: 30px;
}

/* API form styling - CSP compliant */
.api-key-form {
    display: inline-block;
    margin-right: 10px;
}

/* Report link styling - CSP compliant */
.report-link-btn {
    text-decoration: none !important;
    font-size: 0.75rem;
}

/* Color swatch presets - CSP compliant */
.color-swatch-none {
    background: repeating-linear-gradient(45deg, #ddd, #ddd 3px, #fff 3px, #fff 6px);
}

.color-swatch-blue {
    background: linear-gradient(45deg, #3498db, #2c3e50);
}

.color-swatch-green {
    background: linear-gradient(45deg, #27ae60, #2c3e50);
}

.color-swatch-purple {
    background: linear-gradient(45deg, #8e44ad, #2c3e50);
}

.color-swatch-orange {
    background: linear-gradient(45deg, #e67e22, #2c3e50);
}

.color-swatch-teal {
    background: linear-gradient(45deg, #1abc9c, #2c3e50);
}

.color-swatch-red {
    background: linear-gradient(45deg, #e74c3c, #2c3e50);
}

.color-swatch-pink {
    background: linear-gradient(45deg, #fd79a8, #fdcb6e);
}

.color-swatch-lightblue {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
}

.color-swatch-mint {
    background: linear-gradient(45deg, #6c5ce7, #00b894);
}

.api-key-actions {
    display: flex;
    gap: 8px;
}

.api-key-actions .btn {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.api-key-management {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.generation-notice {
    margin-top: 10px;
    padding: 8px 12px;
    background: #dbeafe;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.api-key-empty {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-style: italic;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    line-height: 1.4;
    border-radius: 6px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.extension-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.extension-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.extension-link:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.mfa-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
}

.mfa-status {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.mfa-icon {
    font-size: 2rem;
}

.mfa-status-text {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.mfa-description {
    color: #64748b;
    font-size: 0.9rem;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.profile-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.section-title-success {
    color: var(--color-success);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-title-danger {
    color: var(--color-error);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-title-info {
    color: #3b82f6;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-description-muted {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.form-label-profile {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-help {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 5px;
}

.no-invitations-message {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
}

.password-section,
.email-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

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

/* Mobile responsiveness for profile */
@media (max-width: 768px) {
    .page-container {
        padding: 15px;
    }

    .hero-section {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

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

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

    .philosophy-card {
        padding: 20px;
    }

    .feature-card {
        padding: 20px 15px;
    }
}

/* Decorative Elements */
.brush-stroke {
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--color-primary) 20%,
            var(--color-primary) 80%,
            transparent 100%);
    margin: var(--space-8) auto;
    width: 200px;
    position: relative;
}

.brush-stroke::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-8px) rotate(5deg);
    }

    66% {
        transform: translateY(-4px) rotate(-3deg);
    }
}

/* Forest Accent */
.forest-accent {
    position: relative;
}

.forest-accent::after {
    content: '|';
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: 1.5rem;
    opacity: 0.3;
    color: var(--color-accent1);
    font-weight: bold;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
    z-index: var(--z-modal-backdrop);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    /* Support for both class-based and display-based modal systems */
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active,
.modal-overlay.modal-open {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.modal-content {
    background: var(--color-cream);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.modal-overlay.active .modal-content,
.modal-overlay.modal-open .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: var(--space-6) var(--space-6) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-light-gray);
    margin-bottom: var(--space-4);
}

.modal-title {
    margin: 0;
    color: var(--color-dark);
    font-size: var(--text-lg);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--text-xl);
    color: var(--color-gray);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-light-gray);
    color: var(--color-dark);
}

.modal-body {
    padding: 0 var(--space-6);
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: var(--space-4) var(--space-6) var(--space-6);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    border-top: 1px solid var(--color-light-gray);
    margin-top: var(--space-4);
}

/* Alert System */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    border-left: 4px solid;
}

.alert-success {
    background: rgba(122, 148, 113, 0.1);
    border-color: var(--color-success);
    color: var(--color-success);
}

.alert-error {
    background: rgba(184, 92, 92, 0.1);
    border-color: var(--color-error);
    color: var(--color-error);
}

.alert-warning {
    background: rgba(212, 165, 116, 0.1);
    border-color: var(--color-warning);
    color: var(--color-warning);
}

.alert-info {
    background: rgba(139, 157, 195, 0.1);
    border-color: var(--color-info);
    color: var(--color-info);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
    border-radius: inherit;
    z-index: 1;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-accent1);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-3);
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: var(--space-12) var(--space-4);
    }

    .hero-title {
        font-size: var(--font-4xl);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        height: 45px;
        margin-right: var(--space-2);
    }

    .logo-text {
        font-size: var(--font-4xl);
    }

    .nav {
        flex-direction: column;
        gap: var(--space-2);
    }

    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-base);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-3xl);
    }

    .logo-text {
        font-size: var(--font-3xl);
    }

    .card {
        padding: var(--space-6);
    }

    .modal {
        width: 95%;
        padding: var(--space-6);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
*:focus {
    outline: 2px solid var(--color-accent1);
    outline-offset: 2px;
}

.btn:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline-offset: 0;
}

/* Print Styles */
@media print {

    .nav,
    .btn,
    .modal,
    .alert {
        display: none !important;
    }

    .card {
        border: 1px solid #000;
        box-shadow: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ===== HOMEPAGE SPECIFIC STYLES ===== */

.homepage-hero {
    background: #FFFFFF;
    color: var(--color-text);
    padding: var(--space-16) var(--space-8);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-border);
    text-align: center;
    margin-bottom: var(--space-16);
    position: relative;
    overflow: hidden;
}

.homepage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(46, 93, 62, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34, 90, 61, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.homepage-hero>* {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    margin-bottom: var(--space-6);
    color: var(--color-text);
    line-height: 1.2;
}

.hero-brand {
    color: var(--color-accent1);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: var(--font-2xl);
    color: var(--color-text);
    margin-bottom: var(--space-10);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text);
    opacity: 0.95;
    margin-top: var(--space-md);
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description p {
    margin-bottom: var(--space-sm);
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-logo-section {
    text-align: center;
    margin-bottom: var(--space-8);
}

.hero-logo {
    height: 120px;
    width: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px rgba(46, 93, 62, 0.15);
    transition: var(--transition-normal);
}

.hero-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(46, 93, 62, 0.2);
}

.hero-actions {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
}

.features-section {
    margin-bottom: var(--space-16);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.feature-icon {
    font-size: var(--font-4xl);
    margin-bottom: var(--space-4);
    display: block;
    color: var(--color-accent1);
}

.philosophy-section {
    margin-bottom: var(--space-16);
}

.philosophy-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    margin-bottom: var(--space-16);
}

.philosophy-title {
    color: var(--color-accent1);
    font-size: var(--font-4xl);
    font-weight: 500;
    margin-bottom: var(--space-8);
    text-align: center;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.philosophy-item h4 {
    color: var(--color-accent1);
    font-size: var(--font-xl);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.philosophy-item p {
    color: var(--color-text);
    line-height: 1.6;
    font-size: var(--font-base);
}

.cta-section {
    margin-bottom: var(--space-16);
}

.cta-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-12);
    text-align: center;
}

.cta-title {
    color: var(--color-accent1);
    font-size: var(--font-4xl);
    font-weight: 500;
    margin-bottom: var(--space-4);
}

.cta-subtitle {
    color: var(--color-muted);
    font-size: var(--font-xl);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.cta-actions {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .features-grid,
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FOOTER STYLES ===== */

.site-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-16);
    padding: var(--space-12) 0 var(--space-6);
}

/* ===== NAVIGATION STYLES ===== */

.navigation-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) 0;
    margin-bottom: var(--space-8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: var(--font-2xl);
    font-weight: 300;
    color: var(--color-accent1);
    text-decoration: none;
    letter-spacing: 0.05em;
    gap: var(--space-3);
}

.nav-logo {
    height: 32px;
    width: auto;
    border-radius: var(--radius-sm);
}

.nav-main {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-link {
    padding: var(--space-3) var(--space-4);
    color: var(--color-accent1);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(46, 93, 62, 0.12);
    transform: translateY(-1px);
}

.nav-separator {
    color: var(--color-muted);
    margin: 0 var(--space-2);
    font-weight: normal;
}

.admin-link {
    font-size: 0.9em;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .nav-main {
        display: none;
    }

    .nav-container {
        justify-content: center;
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.footer-title {
    color: var(--color-accent1);
    font-size: var(--font-lg);
    font-weight: 500;
    margin-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-accent1);
    padding-bottom: var(--space-2);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: var(--font-base);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--color-accent1);
}

.footer-description {
    color: var(--color-muted);
    font-size: var(--font-base);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.footer-support {
    margin-top: var(--space-4);
}

.footer-bottom {
    text-align: center;
    margin-top: var(--space-8);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    color: var(--color-muted);
    font-size: var(--font-sm);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ===== API CODE PREVIEW STYLES ===== */
.api-preview {
    background: var(--color-primary);
    color: var(--color-light);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-size: var(--font-sm);
    line-height: 1.5;
    margin-bottom: var(--space-3);
}

.api-comment {
    color: var(--color-success);
}

.api-command {
    color: var(--color-muted);
}

.api-feature {
    color: var(--color-warning);
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none;
}

.faq-hidden {
    display: none !important;
}

/* ===== PREMIUM MESSAGE BOX ===== */
.premium-message-box {
    background: rgba(46, 93, 62, 0.1);
    border: 2px solid var(--color-accent1);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-8);
    text-align: center;
}

.premium-message-text {
    color: var(--color-accent1);
    font-weight: 600;
    font-size: var(--font-lg);
}

.inline-form {
    display: inline;
}

/* Action buttons in tables */
.action-buttons {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.action-buttons .btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-xs);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: var(--space-1);
    }

    .action-buttons .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* ===== MODERN TABLE STYLES ===== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: var(--font-sm);
}

.modern-table .table-header {
    background: var(--color-primary);
    color: white;
}

.modern-table .table-header th {
    padding: var(--space-4) var(--space-3);
    text-align: left;
    font-weight: 600;
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.modern-table .table-header th.text-center {
    text-align: center;
}

.modern-table tbody tr {
    border-bottom: 1px solid var(--color-light-gray);
    transition: background-color 0.2s ease;
}

.modern-table tbody tr:nth-child(even) {
    background: rgba(243, 244, 246, 1);
}

.modern-table tbody tr:hover {
    background: var(--color-light-green) !important;
}

.modern-table tbody tr:last-child {
    border-bottom: none;
}

.modern-table td {
    padding: var(--space-3) var(--space-3);
    vertical-align: middle;
    border: none;
    line-height: 1.3;
}

.modern-table .text-center {
    text-align: center;
}

/* Table cell specific styling */
.link-info {
    min-width: 300px;
}

.link-title {
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: var(--space-0-5);
    font-size: 1.0625rem;
    line-height: 1.2;
}

.link-title .link-url {
    font-size: 1.0625rem !important;
    color: var(--color-dark);
    font-weight: 400;
}

.link-title .link-url:hover {
    color: var(--color-primary);
}

.link-url {
    color: var(--color-primary);
    font-size: var(--font-xs);
    word-break: break-all;
    text-decoration: none;
}

.link-url:hover {
    text-decoration: underline;
}

.link-description {
    color: var(--color-gray);
    font-size: var(--font-xs);
    margin-top: var(--space-0-5);
    line-height: 1.3;
}

.collection-badge {
    display: inline-flex;
    align-items: center;
    background: var(--color-light-green);
    color: var(--color-primary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 500;
}

.collection-badge.collection-none {
    background: var(--color-light-gray);
    color: var(--color-gray);
}

.privacy-status {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 500;
}

.privacy-status.public {
    background: var(--color-light-green);
    color: var(--color-success);
}

.privacy-status.private {
    background: #fef3c7;
    color: #d97706;
}

.date-cell {
    min-width: 120px;
    font-size: var(--font-xs);
    color: var(--color-gray);
}

/* Improved action buttons for tables */
.action-buttons {
    display: flex;
    gap: var(--space-1);
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.action-buttons .btn-sm {
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-xs);
    white-space: nowrap;
    min-width: auto;
    border-radius: var(--radius-sm);
}

/* Responsive table */
@media (max-width: 768px) {
    .modern-table {
        font-size: var(--font-xs);
    }

    .modern-table td,
    .modern-table th {
        padding: var(--space-2);
    }

    .link-info {
        min-width: 200px;
    }

    .action-buttons {
        flex-direction: column;
        gap: var(--space-1);
    }

    .action-buttons .btn-sm {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ===== COLOR PICKER STYLES ===== */
.color-picker-input {
    width: 100px;
    height: 50px;
}

/* ===== MFA FORM STYLES ===== */
.uppercase-input {
    text-transform: uppercase;
}

.mt-15 {
    margin-top: 15px;
}

.mt-30 {
    margin-top: 30px;
}

.help-list {
    text-align: left;
    font-size: var(--font-sm);
    color: var(--color-muted);
}

/* MFA Verification Specific Components */
.mfa-card {
    max-width: 600px;
    margin: 0 auto;
}

.mfa-card-spaced {
    margin-top: var(--space-8);
}

.mfa-lockout-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.mfa-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.mfa-subtitle {
    color: var(--color-text);
}

.mfa-tabs {
    display: flex;
    border-bottom: 1px solid rgba(46, 93, 62, 0.2);
    margin-bottom: var(--space-6);
}

.mfa-tab {
    flex: 1;
    padding: var(--space-4);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    border-bottom: 2px solid transparent;
}

.mfa-tab.active {
    color: var(--color-accent1);
    border-bottom-color: var(--color-accent1);
    font-weight: 600;
}

.mfa-input-centered {
    text-align: center;
    font-size: var(--font-lg);
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.mfa-input-uppercase {
    text-transform: uppercase;
}

.mfa-footer {
    text-align: center;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(46, 93, 62, 0.2);
}

/* MFA Input Row Layout */
.mfa-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.mfa-code-input {
    flex: 0 0 120px;
    max-width: 120px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}

.mfa-submit-btn,
.mfa-cancel-btn {
    flex: 0 0 auto;
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
    height: 36px;
    box-sizing: border-box;
    border-width: 1px;
}

.mfa-submit-btn {
    min-width: 120px;
}

.mfa-cancel-btn {
    min-width: 80px;
}

/* Backup Codes Warning Card */
.backup-codes-warning-card {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-top: var(--space-6);
}

.backup-codes-section {
    text-align: center;
}

.backup-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-3);
    margin: var(--space-4) 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.backup-code {
    background: #ffffff;
    border: 1px solid #d97706;
    border-radius: var(--radius-md);
    padding: var(--space-3);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: var(--font-sm);
    letter-spacing: 1px;
    text-align: center;
    color: #92400e;
}

.backup-codes-note {
    font-size: var(--font-sm);
    color: #92400e;
    font-weight: 500;
    margin-top: var(--space-4);
}

/* Lockout state styles */
.lockout-title {
    color: var(--color-error);
    margin-bottom: var(--space-4);
}

.lockout-message {
    color: var(--color-text);
    margin-bottom: var(--space-6);
}

/* Tab content visibility */
.tab-content {
    display: none;
}

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

/* Text utilities */
/* Form utilities */
.inline-form {
    display: inline;
}

/* Link button style */
.link-button {
    background: none;
    border: none;
    color: var(--color-accent1);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

.muted-link {
    color: var(--color-text-secondary);
}

/* ===== UNIFIED FORM UTILITIES ===== */
/* Form containers */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-container-narrow {
    max-width: 400px;
    margin: 0 auto;
}

/* Honeypot anti-spam field */
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Input sizing */
.input-small {
    max-width: 150px;
}

.input-medium {
    max-width: 250px;
}

/* Spacing utilities */
.mt-5 {
    margin-top: var(--space-5);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

/* Text utilities */
.subtitle-large {
    font-size: var(--font-lg);
    color: var(--color-text);
    margin-bottom: var(--space-8);
}

.info-text {
    font-size: var(--font-lg);
    color: var(--color-text);
    margin-bottom: var(--space-6);
}

.title-accent {
    color: var(--color-accent1);
}

.text-small {
    font-size: var(--font-sm);
}

/* Form utilities */
.inline-form {
    display: inline;
}

/* Collections page specific utilities */
.collections-title {
    color: #60a5fa;
    font-weight: 900;
}

.premium-upsell {
    color: #f59e0b;
}

.premium-link {
    color: #f59e0b;
    text-decoration: underline;
}

.slug-preview {
    font-size: 12px;
    color: #3498db;
    margin-top: 5px;
    display: none;
    font-family: monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #3498db;
}

.delete-warning {
    color: #e74c3c;
}

.modal-wide {
    max-width: 700px;
}

.hidden {
    display: none;
}

/* ===== ADMIN FORM WIDTH UTILITIES ===== */
.w-auto {
    width: auto;
}

.min-w-120 {
    min-width: 120px;
}

.min-w-140 {
    min-width: 140px;
}

.min-w-150 {
    min-width: 150px;
}

.min-w-180 {
    min-width: 180px;
}

.min-w-250 {
    min-width: 250px;
}

/* ===== STATUS BADGE STYLES ===== */
.status-badge-no-roles {
    background: var(--color-muted);
    color: white;
}

.status-badge-admin-yes {
    background: var(--color-error);
    color: white;
}

.status-badge-admin-no {
    background: var(--color-muted);
    color: white;
}

.inline-block-form {
    display: inline-block;
    margin: 2px;
}

/* ===== ROLE LEVEL BADGES ===== */
.role-level-30 {
    background: #dc2626;
    color: white;
}

.role-level-20 {
    background: #ea580c;
    color: white;
}

.role-level-10 {
    background: #ca8a04;
    color: white;
}

.role-level-default {
    background: #059669;
    color: white;
}

/* ===== ABOUT PAGE TEXT STYLES ===== */
.hero-intro {
    text-align: center;
    margin-bottom: var(--space-8);
}

.hero-statement {
    font-size: var(--font-xl);
    color: var(--color-text);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.philosophy-text {
    font-size: var(--font-lg);
    color: var(--color-text);
    margin-bottom: var(--space-6);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.philosophy-text-final {
    font-size: var(--font-lg);
    color: var(--color-text);
    margin-bottom: var(--space-8);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.conclusion-section {
    text-align: center;
    margin-top: var(--space-8);
}

.conclusion-text {
    font-size: var(--font-lg);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.brand-tagline {
    font-size: var(--font-xl);
    color: var(--color-accent1);
    font-weight: 500;
}

/* ===== PREMIUM ADMIN STYLES ===== */
.premium-crown-icon {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #1a202c;
}

.status-lifetime {
    background: #10b981;
    color: white;
}

.status-active {
    background: #3b82f6;
    color: white;
}

.status-expired {
    background: #ef4444;
    color: white;
}

.inline-select {
    display: inline;
    width: auto;
    margin-right: 5px;
}

/* ===== ADMIN REPORTS STYLES ===== */
.alert-icon {
    font-size: 20px;
    margin-right: 10px;
}

.error-list {
    padding-left: 20px;
}

.error-item {
    margin: 5px 0;
}

.text-italic {
    font-style: italic;
}

.border-top-light {
    border-top: 1px solid #e2e8f0;
}

/* ===== MANAGE LINKS STYLES ===== */
.hero-title-accent {
    color: #60a5fa;
    font-weight: 900;
}

.mb-15 {
    margin-bottom: 15px;
}

.mt-20 {
    margin-top: 20px;
}

/* ===== COMPACT FORM ELEMENTS ===== */
.compact-select {
    font-size: 0.75em;
    padding: 2px;
    margin-right: 2px;
}

/* ===== AUTH PAGE STYLES ===== */
.auth-card {
    max-width: 500px;
    margin: 0 auto;
}

.success-message-box {
    background: rgba(46, 93, 62, 0.1);
    border: 2px solid var(--color-accent1);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-8);
    text-align: center;
}

.success-message-title {
    color: var(--color-accent1);
    font-weight: 600;
    font-size: var(--font-lg);
    margin-bottom: var(--space-2);
}

.success-message-text {
    margin: 0;
    color: var(--color-text);
}

.error-message-title {
    color: var(--color-error);
    font-weight: 600;
    font-size: var(--font-lg);
    margin-bottom: var(--space-2);
}

.error-message-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--color-error);
}

.error-message-item {
    margin-bottom: var(--space-1);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(46, 93, 62, 0.2);
}

.auth-link {
    color: var(--color-accent1);
    text-decoration: none;
    font-weight: 500;
}

/* ===== VERIFICATION PAGE STYLES ===== */
.verify-card {
    max-width: 600px;
    margin: var(--space-20) auto;
    text-align: center;
}

.verify-success-icon {
    color: var(--color-accent1);
    margin-bottom: var(--space-6);
}

.verify-error-icon {
    color: var(--color-error);
    margin-bottom: var(--space-6);
}

.verify-icon-svg {
    margin-bottom: var(--space-4);
}

.verify-title {
    margin-bottom: var(--space-4);
}

.verify-success-text {
    color: var(--color-accent1);
    margin-bottom: var(--space-8);
    font-size: var(--font-lg);
    line-height: 1.5;
}

.verify-error-text {
    color: var(--color-error);
    margin-bottom: var(--space-8);
    font-size: var(--font-lg);
    line-height: 1.5;
}

.button-group-flex {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.verify-footer {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 2px solid var(--color-lines);
}

/* ===== AUTH TEXT UTILITIES ===== */
.text-muted-small {
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.text-separator {
    margin: 0 var(--space-4);
}

.help-text-small {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: 1.5;
}

/* ===== BOOTSTRAP ICONS SYSTEM ===== */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
}

/* Icon Sizes */
.icon-xs {
    width: 0.75rem;
    height: 0.75rem;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-xl {
    width: 2rem;
    height: 2rem;
}

/* Icon Colors */
.icon-primary {
    color: var(--color-primary);
}

.icon-accent {
    color: var(--color-accent1);
}

.icon-success {
    color: var(--color-success);
}

.icon-warning {
    color: var(--color-warning);
}

.icon-error {
    color: var(--color-error);
}

.icon-info {
    color: var(--color-info);
}

.icon-muted {
    color: var(--color-muted);
}

/* Icon Positioning - Higher specificity to override universal reset */
.icon-before,
svg.icon-before {
    margin-right: 0.5rem !important;
}

.icon-after,
svg.icon-after {
    margin-left: 0.5rem !important;
}

/* Section Headers with Icons */
.section-title-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Button Icons */
.btn .icon,
.btn .icon-before {
    margin-right: 0.5rem;
}

.btn .icon-after {
    margin-left: 0.5rem;
}

.btn .icon:only-child,
.btn .icon-before:only-child,
.btn .icon-after:only-child {
    margin: 0;
}

/* Navigation Icons */
.nav-icon {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.5rem;
}

/* Status Icons */
.status-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

/* Feature Icons - Override for feature cards */
.feature-card .feature-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: var(--space-4);
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent1);
    margin-left: auto;
    margin-right: auto;
}

.feature-card .feature-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.social-links .btn {
    min-width: 140px;
}

/* Social Sharing Buttons */
.social-sharing-buttons {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
    align-items: center;
}

.btn-social {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius-base);
    border: 1px solid transparent;
    background: var(--color-card-background);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
}

.btn-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

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

.btn-social.btn-linkedin {
    border-color: var(--color-info);
    color: var(--color-info);
}

.btn-social.btn-linkedin:hover {
    background: var(--color-info);
    color: white;
}

.btn-social.btn-twitter {
    border-color: var(--color-text-secondary);
    color: var(--color-text-secondary);
}

.btn-social.btn-twitter:hover {
    background: var(--color-text-secondary);
    color: white;
}

.btn-social.btn-instagram {
    border-color: #E4405F;
    color: #E4405F;
}

.btn-social.btn-instagram:hover {
    background: #E4405F;
    color: white;
}

.btn-social.btn-copy {
    border-color: var(--color-accent2);
    color: var(--color-accent2);
}

.btn-social.btn-copy:hover {
    background: var(--color-accent2);
    color: white;
}

.btn-social.copied {
    background: var(--color-success) !important;
    color: white !important;
    border-color: var(--color-success) !important;
}

@media (max-width: 768px) {
    .social-sharing-buttons {
        gap: var(--space-1);
    }

    .btn-social {
        min-width: 36px;
        height: 28px;
        padding: var(--space-1) var(--space-2);
    }
}

/* ===== END BOOTSTRAP ICONS SYSTEM ===== */

/* ===== MFA SETUP STYLING ===== */

.mfa-status-section {
    margin: 2rem 0;
}

.info-item--success {
    border-left: 4px solid var(--color-success);
    background: rgba(46, 93, 62, 0.05);
}

.info-item--warning {
    border-left: 4px solid var(--color-warning);
    background: rgba(243, 156, 18, 0.05);
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.status-enabled {
    background: var(--color-success);
    color: white;
}

.status-disabled {
    background: var(--color-warning);
    color: white;
}

.setup-section {
    margin: 2rem 0;
}

.setup-actions {
    text-align: center;
    margin: 2rem 0;
}

.instruction-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.instruction-list li {
    counter-increment: step-counter;
    margin: 1rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.5;
}

.instruction-list li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--color-accent1);
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== END MFA SETUP STYLING ===== */

/* ===== CUSTOMIZE PROFILE STYLING ===== */

.theme-presets {
    margin: 1rem 0;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.preset-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-background);
    color: var(--color-text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    border-color: var(--color-accent1);
    background: var(--color-light);
}

.preset-btn.active {
    border-color: var(--color-accent1);
    background: var(--color-accent1);
    color: white;
}

.preset-colors {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.color-preview-box {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.preview-content {
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.current-banner-section {
    margin: 1rem 0;
}

.banner-preview-container {
    margin: 0.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--color-border);
}

.title-image-preview {
    width: 100%;
    height: auto;
    display: block;
}

.remove-banner-form {
    margin-top: 1rem;
}

/* ===== END CUSTOMIZE PROFILE STYLING ===== */

/* ===== COLLECTIONS CUSTOMIZATION MODAL STYLING ===== */

/* Customization modal tabs */
.customization-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #64748b;
}

.tab-button:hover {
    background: #f8f9fa;
}

.tab-button.active {
    border-bottom-color: #3498db;
    color: #3498db;
    background: #f8f9fa;
}

.tab-content {
    display: none;
}

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

/* Form styling for collections - 2 column layout */
.collection-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.help-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* Collection customization preview */
.collection-avatar {
    text-align: center;
    margin-bottom: 10px;
}

.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--theme-primary, #3498db);
}

.collection-banner {
    background: var(--theme-primary, #3498db);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .collection-form .form-row {
        grid-template-columns: 1fr;
    }

    .customization-tabs {
        flex-direction: column;
    }

    .tab-button {
        border-bottom: 1px solid #e2e8f0;
        border-right: 3px solid transparent;
    }

    .tab-button.active {
        border-bottom-color: #e2e8f0;
        border-right-color: #3498db;
    }

    .avatar-img {
        width: 50px;
        height: 50px;
    }
}

/* ===== END COLLECTIONS CUSTOMIZATION MODAL STYLING ===== */

/* ===== COLLECTIONS LIST STYLING ===== */

/* Collections grid layout */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.collection-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.collection-header {
    margin-bottom: 15px;
}

.collection-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.collection-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #6b7280;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.collection-description {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.collection-meta {
    background: #ffffff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #6b7280;
}

.collection-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.visibility-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.visibility-private {
    background: #fee2e2;
    color: #991b1b;
}

.visibility-hidden {
    background: #fef3c7;
    color: #92400e;
}

.visibility-public {
    background: #dcfce7;
    color: #166534;
}

/* Compact Collections List */
.collections-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.collection-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.collection-item:hover {
    border-color: #60a5fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.collection-info {
    flex: 1;
    min-width: 0;
}

.collection-name-section {
    margin-bottom: 0.5rem;
}

.collection-url-link {
    color: #60a5fa;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.collection-url-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.collection-url {
    font-family: monospace;
    font-size: 0.9em;
    color: #6b7280;
}

.private-collection-url {
    color: #94a3b8;
    font-style: italic;
}

.collection-date {
    color: #9ca3af;
}

/* Responsive design */
@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-actions {
        flex-direction: column;
    }

    .collection-actions .btn {
        width: 100%;
    }

    .collection-item {
        flex-direction: column;
        gap: 1rem;
    }

    .collection-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
}

/* ===== END COLLECTIONS LIST STYLING ===== */

/* ===== ENHANCED DELETE MODAL STYLING ===== */

.warning-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.warning-box p {
    margin: 0 0 8px 0;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

.links-info {
    color: #92400e;
    font-weight: 500;
}

.deletion-options {
    margin: 20px 0;
}

.deletion-options>p {
    font-weight: 600;
    margin-bottom: 15px;
    color: #374151;
}

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

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.radio-option:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.radio-option.recommended {
    border-color: #10b981;
    background: #f0fdf4;
}

.radio-option.recommended:hover {
    border-color: #059669;
}

.radio-option.dangerous {
    border-color: #f87171;
    background: #fef2f2;
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
}

.radio-option.dangerous:hover {
    border-color: #ef4444;
    background: #fee2e2;
}

.radio-option.dangerous .radio-custom {
    background: white !important;
    border: 2px solid #9ca3af !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    position: relative !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
}

.radio-option.dangerous:hover .radio-custom {
    border-color: #6b7280 !important;
}

.radio-option.dangerous .option-content {
    flex: 1 !important;
    line-height: 1.5 !important;
}

.radio-option.dangerous .option-content strong {
    display: block !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

.radio-option.dangerous .warning-text {
    color: #dc2626 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    display: block !important;
}

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

.radio-option input[type="radio"]:focus+.radio-custom {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.radio-option input[type="radio"]:focus~.option-content {
    outline: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-top: 1px;
    background: white;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked+.radio-custom {
    border-color: #3b82f6;
    background: white;
}

.radio-option input[type="radio"]:checked+.radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all 0.2s ease;
}

.radio-option.recommended input[type="radio"]:checked+.radio-custom {
    border-color: #10b981;
}

.radio-option.recommended input[type="radio"]:checked+.radio-custom::after {
    background: #10b981;
}

.radio-option.dangerous input[type="radio"]:checked+.radio-custom {
    border-color: #ef4444 !important;
    background: white !important;
    box-shadow: 0 0 0 1px #ef4444;
}

.radio-option.dangerous input[type="radio"]:checked+.radio-custom::after {
    background: #ef4444 !important;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
}

.option-content {
    flex: 1;
    line-height: 1.5;
}

.option-content strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #374151;
}

.option-content span {
    display: block;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.option-content small {
    color: #6b7280;
    line-height: 1.4;
}

.warning-text {
    color: #dc2626 !important;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .radio-option {
        padding: 12px;
    }

    .option-group {
        gap: 10px;
    }
}

/* ===== END ENHANCED DELETE MODAL STYLING ===== */

/* ===== FAQ PAGE STYLES ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-8);
    justify-content: center;
}

.category-btn {
    font-size: var(--font-sm);
    padding: 6px 12px;
    transition: var(--transition-fast);
}

.category-btn.active {
    background: var(--color-accent1);
    color: var(--color-cream);
    border-color: var(--color-accent1);
}

.faq-item {
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--color-accent1);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: var(--space-4) var(--space-6);
    background: var(--color-background);
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: var(--font-lg);
    color: var(--color-text);
    transition: var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.faq-question:hover {
    background: var(--color-light);
}

.faq-question .icon {
    margin-right: var(--space-3);
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 var(--space-6);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--color-cream);
}

.faq-item.open .faq-answer {
    padding: var(--space-4) var(--space-6);
    max-height: 2000px;
}

.faq-item.open .faq-question {
    border-bottom-color: var(--color-border);
    background: var(--color-background);
}

.faq-answer p {
    margin-bottom: var(--space-3);
    line-height: 1.6;
    color: var(--color-text);
}

.faq-answer ul,
.faq-answer ol {
    margin: var(--space-3) 0;
    padding-left: var(--space-6);
}

.faq-answer li {
    margin-bottom: var(--space-2);
    line-height: 1.6;
}

.faq-answer .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin: var(--space-4) 0;
}

.faq-answer .feature-card {
    background: var(--color-background);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
}

.faq-answer .feature-card h4 {
    margin: var(--space-2) 0;
    font-size: var(--font-base);
    font-weight: 600;
}

.faq-answer .feature-card p {
    font-size: var(--font-sm);
    color: var(--color-muted);
    margin: 0;
}

.faq-hidden {
    display: none !important;
}

/* Modal state management classes for CSP compliance */
.modal-open {
    display: flex !important;
}

.modal-closed {
    display: none !important;
}

.body-modal-open {
    overflow: hidden !important;
}

/* Collections grid for linkshare page */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-4);
}

.collection-card {
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.collection-card:hover {
    border-color: var(--color-accent1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.collection-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent1);
    margin-bottom: var(--space-2);
    display: block;
}

.collection-description-small {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-2);
    line-height: 1.5;
}

.collection-visibility {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin: 0;
    font-style: italic;
}

/* Spacing for report link in linkshare */
.report-spacing {
    margin-left: 1.5rem;
}

.report-link-btn .icon-before {
    margin-right: 0.25rem !important;
}

/* Profile and collection banner styling */
.profile-banner-container {
    position: relative;
    margin-bottom: var(--space-6);
}

.profile-banner-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.banner-text-overlay {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: 600;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .faq-categories {
        justify-content: flex-start;
    }

    .faq-question {
        font-size: var(--font-base);
        padding: var(--space-3) var(--space-4);
    }

    .faq-answer {
        padding: 0 var(--space-4);
    }

    .faq-item.open .faq-answer {
        padding: var(--space-3) var(--space-4);
    }
}

/* Profile Customization Styles */
.customization-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .customization-grid {
        grid-template-columns: 1fr;
    }
}

.current-image {
    margin-bottom: 1rem;
}

.title-image-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.remove-image-form {
    text-align: center;
}

.preview-section {
    margin-top: 2rem;
}

.profile-preview {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.preview-title-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.preview-content {
    padding: 1.5rem;
}

.preview-content h2 {
    margin: 0 0 1rem 0;
    color: var(--theme-primary, #3498db);
}

.preview-bio {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.preview-meta {
    color: #999;
    font-size: 0.9em;
    margin: 0;
}

/* Theme color variables */
.profile-preview[data-theme="green"] h2 {
    color: #27ae60;
}

.profile-preview[data-theme="purple"] h2 {
    color: #8e44ad;
}

.profile-preview[data-theme="orange"] h2 {
    color: #e67e22;
}

.profile-preview[data-theme="teal"] h2 {
    color: #1abc9c;
}

.profile-preview[data-theme="red"] h2 {
    color: #e74c3c;
}

/* Custom theme colors using CSS variables */
.profile-preview[data-theme="custom"] {
    --custom-primary: var(--theme-primary, #3498db);
    --custom-secondary: var(--theme-secondary, #2c3e50);
}

.profile-preview[data-theme="custom"] h2 {
    color: var(--custom-primary, #3498db);
}

.profile-preview[data-theme="custom"] .preview-title-image {
    border: 3px solid var(--custom-primary, #3498db);
}

.profile-preview[data-theme="custom"] .preview-bio {
    border-left: 4px solid var(--custom-secondary, #2c3e50);
}

/* Color Picker Styles */
.color-picker-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #007bff;
}

.color-picker-section h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.color-preview-box {
    height: 60px;
    border-radius: 8px;
    border: 2px solid #ddd;
    background: linear-gradient(45deg, #3498db, #2c3e50);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

input[type="color"] {
    width: 100%;
    max-width: 80px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== ADMIN PANEL LAYOUT ===== */
/* Admin panel uses existing design system with minimal overrides */

/* Admin body styling */
body.admin-mode {
    margin: 0 !important;
    padding: 0 !important;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--color-light);
}

.admin-sidebar {
    width: 280px;
    background: var(--gradient-warm);
    border-right: 2px solid var(--color-accent1);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.admin-sidebar-header {
    padding: var(--space-8) var(--space-6);
    border-bottom: 2px solid var(--color-accent1);
    text-align: center;
}

.admin-sidebar-header h2 {
    color: var(--color-accent1);
    font-size: var(--font-xl);
    font-weight: bold;
    margin: 0;
}

.admin-sidebar-header p {
    color: var(--color-lines);
    font-size: var(--font-sm);
    margin: var(--space-2) 0 0 0;
}

.admin-nav {
    padding: var(--space-4) 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-6);
    color: var(--color-accent1);
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
}

.admin-nav-item:hover {
    background: var(--color-accent1);
    color: var(--color-background);
    transform: translateX(4px);
    text-decoration: none;
}

.admin-nav-item.active {
    background: var(--color-accent2);
    color: var(--color-background);
}

.admin-nav-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: var(--space-3);
    flex-shrink: 0;
}

.admin-nav-badge {
    background: var(--color-error);
    color: white;
    border-radius: var(--radius-full);
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-xs);
    font-weight: 700;
    margin-left: auto;
    min-width: 1.5rem;
    text-align: center;
}

.admin-nav-separator {
    margin: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
}

.admin-content {
    flex: 1;
    margin-left: 280px;
    padding: var(--space-8);
    min-height: 100vh;
}

/* Admin page headers use existing design system */
.admin-page-header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 2px solid var(--color-accent1);
}

.admin-page-header h1 {
    color: var(--color-accent1);
    font-size: var(--font-4xl);
    font-weight: bold;
    margin: 0;
}

.admin-page-header p {
    color: var(--color-lines);
    font-size: var(--font-lg);
    margin: var(--space-2) 0 0 0;
}

/* Statistics use existing card system */
.stats-overview {
    margin-bottom: var(--space-12);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

/* Minor admin-specific additions using existing design system */
.row-highlight {
    background: linear-gradient(90deg, rgba(46, 93, 62, 0.05) 0%, transparent 100%);
}

.current-user-badge {
    font-size: var(--font-xs);
    color: var(--color-info);
    font-weight: 600;
}

.invitation-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-light);
    color: var(--color-muted);
    font-weight: bold;
    font-size: var(--font-sm);
}

.invitation-count.has-invites {
    background: var(--color-success);
    color: var(--color-cream);
}

.invitation-count.no-invites {
    opacity: 0.6;
}

.invitation-form {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

/* ===== ADMIN REPORTS STYLES ===== */
.reports-grid {
    display: grid;
    gap: var(--space-6);
}

.report-card {
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.report-header {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}

.report-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.report-section {
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.link-details,
.reporter-info {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.link-title {
    font-size: var(--font-base);
    line-height: 1.4;
}

.link-url {
    font-family: var(--font-mono);
    word-break: break-all;
}

.link-owner,
.reporter-info {
    font-size: var(--font-sm);
}

.report-actions {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.report-actions .btn-group {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .report-actions .btn-group {
        flex-direction: column;
    }

    .report-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
}

/* ===== ADMIN BANNED CONTENT STYLES ===== */
.banned-section {
    margin-bottom: var(--space-6);
}

.banned-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-border);
}

.banned-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.banned-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.banned-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banned-info {
    flex: 1;
    min-width: 0;
}

.banned-content {
    font-size: var(--font-base);
    margin-bottom: var(--space-1);
    word-break: break-all;
}

.banned-reason {
    margin-bottom: var(--space-2);
    font-style: italic;
}

.banned-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.banned-actions {
    flex-shrink: 0;
}

.empty-state-inline {
    padding: var(--space-6);
    text-align: center;
    background: var(--color-bg-subtle);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
}

.add-banned-form {
    max-width: none;
}

@media (max-width: 768px) {
    .banned-item {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }

    .banned-actions {
        align-self: flex-end;
    }

    .banned-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }
}

.compact-select {
    min-width: 50px;
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-xs);
}

/* ===== VIEW STATS STYLING ===== */
.stats-container {
    margin-top: var(--space-2);
    padding: var(--space-2);
    background: rgba(var(--color-accent1-rgb, 46, 93, 62), 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-accent1);
}

.stats-container .text-muted {
    color: var(--color-muted);
    font-size: var(--font-sm);
    font-weight: 500;
    margin: 0;
}

.stats-container .icon-before {
    color: var(--color-accent1);
    opacity: 0.8;
}

.collection-stats {
    margin: var(--space-1) 0 0 0;
}

.collection-stats small {
    color: var(--color-muted);
    font-size: var(--font-xs);
}

.collection-stats .icon-before {
    color: var(--color-accent2);
    opacity: 0.7;
}

/* Make stats more prominent for owners */
.linkshare-hero .stats-container {
    background: rgba(var(--color-accent1-rgb, 46, 93, 62), 0.08);
    border-left-width: 4px;
}

.linkshare-hero .stats-container .text-muted {
    font-size: var(--font-base);
}

/* ===== ADMIN DASHBOARD ENHANCED ANALYTICS ===== */
.analytics-dashboard {
    margin: var(--space-6) 0;
    background: var(--color-light);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.analytics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.analytics-card {
    background: var(--color-cream);
    border: 1px solid rgba(var(--color-lines-rgb, 52, 73, 94), 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.analytics-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    color: var(--color-text);
    font-size: var(--font-lg);
    font-weight: 600;
    border-bottom: 1px solid rgba(var(--color-lines-rgb, 52, 73, 94), 0.1);
    padding-bottom: var(--space-2);
}

.analytics-icon {
    font-size: 1.2em;
}

.analytics-content h4 {
    color: var(--color-accent1);
    font-size: var(--font-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
    border-left: 3px solid var(--color-accent1);
    padding-left: var(--space-2);
}

/* Top Content Lists */
.top-content-section {
    margin-bottom: var(--space-4);
}

.top-content-section:last-child {
    margin-bottom: 0;
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2);
    background: rgba(var(--color-accent1-rgb, 46, 93, 62), 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--color-accent1-rgb, 46, 93, 62), 0.1);
}

.top-name strong {
    color: var(--color-text);
    font-weight: 600;
    display: block;
}

.top-name small {
    color: var(--color-muted);
    font-size: var(--font-xs);
}

.top-count {
    color: var(--color-accent1);
    font-weight: 600;
    font-size: var(--font-sm);
}

/* Growth Metrics */
.growth-metrics {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.growth-item {
    padding: var(--space-3);
    background: rgba(var(--color-info-rgb, 74, 124, 89), 0.05);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-info);
}

.growth-period {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
    font-size: var(--font-base);
}

.growth-stats {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.growth-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.growth-number {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--color-accent1);
    line-height: 1;
}

.growth-label {
    font-size: var(--font-xs);
    color: var(--color-muted);
    text-align: center;
    margin-top: var(--space-1);
}

/* Engagement Metrics */
.engagement-metrics {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.engagement-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(var(--color-success-rgb, 46, 93, 62), 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--color-success-rgb, 46, 93, 62), 0.1);
}

.engagement-icon {
    font-size: 1.8em;
    width: 50px;
    text-align: center;
}

.engagement-content {
    flex: 1;
}

.engagement-number {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--color-accent1);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.engagement-label {
    color: var(--color-text);
    font-weight: 600;
    font-size: var(--font-base);
    margin-bottom: var(--space-1);
}

.engagement-sublabel {
    color: var(--color-muted);
    font-size: var(--font-sm);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .analytics-row {
        grid-template-columns: 1fr;
    }

    .growth-stats {
        justify-content: center;
    }

    .engagement-item {
        flex-direction: column;
        text-align: center;
    }

    .engagement-icon {
        margin-bottom: var(--space-1);
    }
}

.stats-card {
    background: var(--color-cream);
    border: 1px solid rgba(var(--color-lines-rgb, 52, 73, 94), 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent1);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stats-label {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.stats-change {
    font-size: var(--font-sm);
    color: var(--color-muted);
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(var(--color-lines-rgb, 52, 73, 94), 0.1);
}

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

.activity-content {
    flex: 1;
}

.activity-content strong {
    color: var(--color-text);
    font-weight: 600;
}

.activity-time {
    font-size: var(--font-sm);
    color: var(--color-muted);
    font-weight: 500;
    min-width: 60px;
    text-align: right;
}

/* ===== ADMIN TABLE STYLES ===== */
.admin-borderless-table {
    border: none;
    margin: 0;
    padding: 0;
}

.admin-borderless-td {
    border: none;
    padding: 2px;
}

.admin-inline-form {
    margin: 0;
    display: inline;
}

.admin-small-select {
    width: 90px;
    display: inline-block;
}

.admin-medium-select {
    width: 100px;
    display: inline-block;
}

.admin-nowrap-btn {
    white-space: nowrap;
}

/* ===== UNSUBSCRIBE PAGE STYLES ===== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: var(--color-primary);
    background-color: rgba(52, 152, 219, 0.05);
}

.radio-option input[type="radio"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
}

/* Selected state for radio option */
.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--color-primary);
    background-color: rgba(46, 93, 62, 0.1);
}

.radio-option input[type="radio"]:checked+.radio-text {
    color: var(--color-primary);
}

.radio-option input[type="radio"]:checked+.radio-text strong {
    color: var(--color-primary);
}

.radio-text strong {
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.radio-text small {
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Enhanced form styling for unsubscribe page */
.philosophy-card .form-container {
    background: var(--color-background);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    border: 1px solid var(--color-border);
}

.philosophy-card .form-group {
    margin-bottom: var(--space-6);
}

.philosophy-card .form-label {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    display: block;
}

.philosophy-card .form-control {
    width: 100%;
    padding: var(--space-3);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-base);
    transition: border-color 0.2s ease;
}

.philosophy-card .form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.philosophy-card .form-text {
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-2);
}

.philosophy-card .radio-group {
    margin-top: var(--space-3);
}

/* ===== ADMIN CONSENT MANAGEMENT STYLES ===== */
.consent-table th,
.consent-table td {
    padding: 0.75rem 0.5rem;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.consent-type-badge {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-active {
    color: #27ae60;
    font-weight: bold;
}

.status-withdrawn {
    color: #e74c3c;
    font-weight: bold;
}

.status-pending {
    color: #f39c12;
    font-weight: bold;
}

.withdrawn-record {
    background-color: #fdf2f2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 0.5rem 0;
}

.stat-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.stat-active {
    color: #27ae60;
    font-weight: bold;
}

.stat-withdrawn {
    color: #e74c3c;
    font-weight: bold;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: bold;
}

.filter-group input,
.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.compliance-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.compliance-item h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* ===== PRIVACY PAGE TABLE ENHANCEMENTS ===== */
.modern-table.privacy-table td {
    padding: 1rem 0.75rem;
    vertical-align: top;
    line-height: 1.5;
}

.modern-table.privacy-table td strong {
    color: var(--color-primary);
    font-weight: 600;
}

.modern-table.privacy-table td small {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.modern-table.privacy-table .text-link {
    color: var(--color-accent1);
    text-decoration: underline;
}

.modern-table.privacy-table .text-link:hover {
    color: var(--color-accent2);
}

/* Data Processor Status Badges */
.location-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.location-badge.eu {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.signed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.internal {
    background: #e2e3e5;
    color: #495057;
    border: 1px solid #ced4da;
}

/* ===== TERMS OF SERVICE PAGE STYLES ===== */
.terms-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.terms-content-section {
    margin-bottom: var(--space-10);
    padding: var(--space-6);
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.terms-content-heading {
    font-size: var(--font-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--color-accent1);
    padding-bottom: var(--space-3);
}

.terms-content-text {
    font-size: var(--font-lg);
    line-height: 1.7;
    color: var(--color-text);
}

.terms-subsection-title {
    font-size: var(--font-xl);
    color: var(--color-accent2);
    margin: var(--space-6) 0 var(--space-4) 0;
}

.terms-feature-list,
.terms-rule-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.terms-feature-item,
.terms-rule-item {
    display: flex;
    align-items: center;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--font-base);
}

.terms-feature-item {
    background: var(--color-light);
    border-left: 4px solid var(--color-accent1);
}

.terms-rule-do {
    background: rgba(46, 93, 62, 0.1);
    border-left: 4px solid var(--color-success);
    color: var(--color-success);
}

.terms-rule-dont {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--color-error);
    color: var(--color-error);
}

.terms-info-callout {
    background: rgba(74, 124, 89, 0.1);
    border: 1px solid var(--color-info);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin: var(--space-6) 0;
    font-size: var(--font-base);
}

.terms-warning-callout {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid var(--color-warning);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin: var(--space-6) 0;
    font-size: var(--font-base);
}

.terms-disclaimer-grid,
.terms-legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.terms-disclaimer-item {
    text-align: center;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--color-light);
}

.terms-disclaimer-item h4 {
    margin: var(--space-3) 0;
    color: var(--color-primary);
}

.terms-legal-card {
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-background);
}

.terms-legal-card h4 {
    color: var(--color-accent2);
    margin-bottom: var(--space-2);
}

.terms-contact-card {
    background: var(--color-light);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    margin: var(--space-4) 0;
    text-align: center;
}

.terms-contact-info h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

@media (max-width: 768px) {
    .terms-content-section {
        padding: var(--space-4);
        margin-bottom: var(--space-6);
    }

    .terms-content-heading {
        font-size: var(--font-xl);
    }

    .terms-disclaimer-grid,
    .terms-legal-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTACT PAGE STYLES ===== */
/* Form styling enhancements */
.contact-form .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form .form-input:hover {
    border-color: #9ca3af;
}

/* Contact page responsive adjustments */
@media (max-width: 768px) {
    .contact-feature-grid {
        grid-template-columns: 1fr;
    }

    .contact-btn-group {
        flex-direction: column;
        gap: 10px;
    }

    .contact-btn-group .btn {
        width: 100%;
    }
}

/* ===== AUTH FORM CONSENT STYLES ===== */
.consent-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.consent-item {
    margin-bottom: 15px;
}

.consent-item:last-child {
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-input {
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.checkbox-text {
    flex: 1;
    color: #495057;
}

.checkbox-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.required-indicator {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
}

.consent-note {
    display: block;
    color: #6c757d;
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}

/* Login consent notice */
.login-consent-notice {
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 4px;
}

.consent-notice-text {
    margin: 0;
    font-size: 13px;
    color: #495057;
    line-height: 1.4;
}

.consent-notice-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.consent-notice-text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ================================
   ADMIN DASHBOARD - SUSPICIOUS ACTIVITY
   ================================ */

/* Form validation states for inputs */
.input-valid {
    border-color: var(--color-success) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.input-invalid {
    border-color: var(--color-error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Suspicious Activity Styling */
.suspicious-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.suspicious-item {
    padding: 1.5rem;
    border-radius: 8px;
    background: white;
    border: 2px solid #f3f4f6;
    transition: all 0.2s ease;
}

.suspicious-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suspicious-item.border-danger {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.suspicious-item.border-warning {
    border-color: #d97706;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.suspicious-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.suspicious-type .status-badge {
    font-weight: 600;
}

.suspicious-content {
    margin-bottom: 1.25rem;
}

.suspicious-identifier {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.suspicious-description {
    color: #4b5563;
    line-height: 1.5;
}

.suspicious-description strong {
    color: #dc2626;
    font-size: 1.1rem;
}

.suspicious-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.suspicious-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Status badges for severity */
.status-badge.status-red {
    background-color: #dc2626;
    color: white;
}

.status-badge.status-orange {
    background-color: #ea580c;
    color: white;
}

.status-badge.status-yellow {
    background-color: #d97706;
    color: white;
}

.status-badge.status-purple {
    background-color: #7c3aed;
    color: white;
}

.status-badge.status-gray {
    background-color: #6b7280;
    color: white;
}

/* Enhanced empty state */
.activity-empty.text-center {
    padding: 3rem 2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 2px solid #22c55e;
}

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

/* ================================
   ADMIN DASHBOARD - MODERATION ACTIONS
   ================================ */

/* Moderation Actions Styling */
.moderation-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.moderation-action-card {
    padding: 1.5rem;
    border-radius: 8px;
    background: white;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
}

.moderation-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.moderation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.moderation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
}

.moderation-time .status-badge {
    font-size: 0.75rem;
    font-weight: 500;
}

.moderation-content {
    margin-bottom: 1.25rem;
}

.moderation-actor {
    margin-bottom: 0.75rem;
}

.moderation-action {
    margin-bottom: 0.75rem;
}

.action-type {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.moderation-description {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
    margin-top: 0.5rem;
}

.moderation-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.moderation-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Activity header enhancement */
.activity-header small {
    font-weight: normal;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* Responsive design for suspicious activity */
@media (max-width: 768px) {

    .suspicious-activity-grid,
    .moderation-actions-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .suspicious-item,
    .moderation-action-card {
        padding: 1rem;
    }

    .suspicious-header,
    .moderation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .suspicious-actions,
    .moderation-actions {
        flex-direction: column;
    }

    .suspicious-actions .btn,
    .moderation-actions .btn {
        width: 100%;
        justify-content: center;
    }
}