/* ===========================================
   Articlick - Modern CSS Framework
   =========================================== */

/* CSS Variables */
:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --secondary: #6366f1;
    --secondary-dark: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --white: #ffffff;
    --black: #000000;

    --gradient-primary: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.3);
    --shadow-glow-secondary: 0 0 40px rgba(99, 102, 241, 0.3);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===========================================
   Modern Animations
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(249, 115, 22, 0.5);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(249, 115, 22, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 0.75rem;
    border-radius: var(--radius-full);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--danger);
}

.form-input.success,
.form-select.success,
.form-textarea.success {
    border-color: var(--success);
}

.form-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--danger);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.input-icon ~ .form-input {
    padding-left: 3rem;
}

.input-action {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-fast);
}

.input-action:hover {
    color: var(--gray-600);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--gray-600);
    cursor: pointer;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Auth Layout */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.auth-layout::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 60s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    padding: 3rem;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.auth-logo img {
    height: 48px;
    width: auto;
}

.auth-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-title {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.auth-footer a {
    font-weight: 600;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--gray-900);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-logo {
    display: block;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.sidebar-logo:hover {
    opacity: 0.8;
}

.sidebar-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--gray-300);
    border-radius: var(--radius);
    transition: var(--transition-fast);
    font-weight: 500;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.sidebar-link.active {
    background: var(--primary);
    color: var(--white);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-link-locked {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: var(--gray-50);
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-600);
}

.stat-icon.primary {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--gray-200);
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.avatar-xl {
    width: 120px;
    height: 120px;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.avatar-lg.avatar-placeholder { font-size: 1.5rem; }
.avatar-xl.avatar-placeholder { font-size: 2rem; }

.avatar-upload {
    position: relative;
    display: inline-block;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    border: 3px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.avatar-upload-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.avatar-upload input[type="file"] {
    display: none;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

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

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
}

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

/* Modal structure using .modal as container (service-modal, location-modal, etc.) */
#service-modal,
#location-modal,
#faq-modal,
#collaborators-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    overflow: visible !important;
}

#service-modal.active,
#location-modal.active,
#faq-modal.active,
#collaborators-modal.active {
    opacity: 1;
    visibility: visible;
}

#service-modal .modal-backdrop,
#location-modal .modal-backdrop,
#faq-modal .modal-backdrop,
#collaborators-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

#service-modal .modal-content,
#location-modal .modal-content,
#faq-modal .modal-content,
#collaborators-modal .modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
}

#service-modal.active .modal-content,
#location-modal.active .modal-content,
#faq-modal.active .modal-content,
#collaborators-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Loader */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.btn .loader {
    width: 20px;
    height: 20px;
    border-width: 2px;
    border-color: rgba(255,255,255,0.3);
    border-top-color: white;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 320px;
    max-width: 420px;
    animation: toastIn 0.3s ease;
}

.toast.hiding {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.125rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--info); }

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.password-strength-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.password-strength-fill {
    height: 100%;
    width: 0;
    transition: var(--transition);
    border-radius: 2px;
}

.password-strength-fill.weak { width: 25%; background: var(--danger); }
.password-strength-fill.fair { width: 50%; background: var(--warning); }
.password-strength-fill.good { width: 75%; background: var(--info); }
.password-strength-fill.strong { width: 100%; background: var(--success); }

.password-strength-text {
    font-size: 0.8125rem;
    font-weight: 500;
}

.password-strength-text.weak { color: var(--danger); }
.password-strength-text.fair { color: var(--warning); }
.password-strength-text.good { color: var(--info); }
.password-strength-text.strong { color: var(--success); }

/* Landing Page Specific */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-brand-text {
    display: inline;
}

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

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
}

.navbar.scrolled .navbar-link {
    color: var(--gray-600);
}

.navbar-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .navbar-link:hover {
    color: var(--primary);
    background: rgba(249, 115, 22, 0.1);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.navbar-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.navbar.scrolled .navbar-actions .btn-secondary {
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
}

.navbar.scrolled .navbar-actions .btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

/* Hero Section - Modern Redesign */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 8rem 0 6rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 60s linear infinite;
}

/* Floating decorative elements */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 8s ease-in-out infinite;
}

.hero-floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.hero-floating-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.1) 100%);
    top: 10%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.hero-floating-shapes .shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    bottom: 20%;
    right: 15%;
    animation: floatReverse 10s ease-in-out infinite;
}

.hero-floating-shapes .shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
    top: 40%;
    right: 25%;
    animation: float 12s ease-in-out infinite;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 0.6s ease forwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-badge svg {
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.75rem;
    letter-spacing: -0.03em;
}

.hero-title span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-actions .btn-primary {
    padding: 1.125rem 2rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4);
    transition: var(--transition);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.5);
}

.hero-actions .btn-secondary {
    padding: 1.125rem 2rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-trust {
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.hero-image {
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    width: 52%;
    max-width: 680px;
    animation: fadeInRight 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.35);
}

/* Features Section */
.section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4.5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding: 0.5rem 1rem;
    background: rgba(249, 115, 22, 0.08);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1875rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Modern Bento Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(249, 115, 22, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon.primary {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.05) 100%);
    color: var(--primary);
}

.feature-icon.secondary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: var(--secondary);
}

.feature-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: var(--success);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.75;
    font-size: 0.9375rem;
}

/* Service Cards - Large Format */
.services-section .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.services-section .feature-card {
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    background: linear-gradient(145deg, var(--white) 0%, var(--gray-50) 100%);
}

.services-section .feature-card::before {
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Steps Section - Modern Timeline */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: step;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--success), var(--warning));
    border-radius: var(--radius-full);
    z-index: 0;
}

.step-card {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    counter-increment: step;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    z-index: 1;
}

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

.step-card::before {
    content: counter(step);
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
    transition: var(--transition);
}

.step-card:hover::before {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

.step-card:nth-child(2)::before {
    background: linear-gradient(135deg, var(--secondary) 0%, #8b5cf6 100%);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.step-card:nth-child(2):hover::before {
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

.step-card:nth-child(3)::before {
    background: linear-gradient(135deg, var(--success) 0%, #06b6d4 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.step-card:nth-child(3):hover::before {
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.step-card:nth-child(4)::before {
    background: linear-gradient(135deg, var(--warning) 0%, #f97316 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.step-card:nth-child(4):hover::before {
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.step-title {
    font-size: 1.1875rem;
    font-weight: 700;
    margin: 1.25rem 0 0.75rem;
    color: var(--gray-900);
    text-align: center;
}

.step-description {
    color: var(--gray-600);
    line-height: 1.75;
    font-size: 0.9375rem;
    text-align: center;
}

/* CTA Section - Modern Design */
.cta-section {
    background: var(--gradient-hero);
    padding: 7rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 60%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-full);
    padding: 0.625rem 1.25rem;
    margin-bottom: 2rem;
    animation: pulse 3s ease-in-out infinite;
}

.cta-badge span {
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.9375rem;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.cta-section .btn {
    padding: 1.125rem 2.5rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-lg);
}

/* Modern FAQ Accordion */
.faq-section {
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid transparent;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(249, 115, 22, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.faq-item.active {
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(249, 115, 22, 0.2);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    cursor: pointer;
    gap: 1rem;
}

.faq-question h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

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

.faq-answer-content {
    padding: 0 1.75rem 1.75rem;
}

.faq-answer p {
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0;
    font-size: 0.9375rem;
}

/* Objectifs Cards - Enhanced */
.objectifs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.objectif-card {
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    border: 2px solid;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.objectif-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.5;
    z-index: -1;
}

.objectif-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.objectif-card .feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.objectif-card .feature-title {
    font-size: 1.25rem;
    color: var(--gray-900);
}

.objectif-card .feature-description {
    color: var(--gray-700);
}

/* Footer - Modern Design */
.footer {
    background: linear-gradient(180deg, var(--gray-900) 0%, #0f0f23 100%);
    color: var(--gray-400);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    height: 36px;
    width: auto;
}

.footer-description {
    line-height: 1.8;
    max-width: 320px;
    font-size: 0.9375rem;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition);
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

/* Account Page */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.profile-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: var(--gray-500);
    margin: 0;
}

.settings-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.settings-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.settings-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.settings-body {
    padding: 2rem;
}

.settings-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Danger Zone */
.danger-zone {
    border: 2px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.02);
}

.danger-zone .settings-header {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.danger-zone .settings-title {
    color: var(--danger);
}

/* Responsive */
@media (max-width: 1280px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .steps-grid::before {
        display: none;
    }

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

    .objectifs-grid .feature-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .hero-image {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-floating-shapes {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

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

    .section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }

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

    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .objectifs-grid .feature-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .services-section .features-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 2rem;
    }

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

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
        margin: 0 auto;
    }

    .navbar-menu {
        display: none;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .feature-card {
        padding: 1.75rem;
    }

    .step-card {
        padding: 2rem 1.5rem 1.5rem;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 4rem;
    }

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

    .hero-description {
        font-size: 1.0625rem;
    }

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

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

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        padding: 1rem 1.5rem;
    }

    .auth-layout {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .section-description {
        font-size: 1rem;
    }

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

    .cta-description {
        font-size: 1.0625rem;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none !important; }
.visible { visibility: visible !important; }

/* ===========================================
   Image Import Service Styles
   =========================================== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--gray-400);
}

/* Form Container */
.form-container {
    max-width: 800px;
}

/* Category Badges */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.status-draft {
    background: var(--gray-100);
    color: var(--gray-600);
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-completed {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.status-archived {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray-500);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.project-card {
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-2px);
}

.project-header {
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-title a {
    color: var(--gray-900);
}

.project-title a:hover {
    color: var(--primary);
}

.project-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.project-stats {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.project-stat svg {
    color: var(--gray-400);
}

.project-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

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

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-icon-sm:hover {
    background: var(--danger);
    color: var(--white);
}

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--tag-color, var(--gray-300));
    background: transparent;
    color: var(--tag-color, var(--gray-600));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.category-tag:hover,
.category-tag.selected {
    background: var(--tag-color, var(--gray-200));
    color: var(--white);
}

/* Color Picker */
.color-picker-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-picker {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
}

.color-presets {
    display: flex;
    gap: 0.5rem;
}

.color-preset {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.color-preset:hover {
    transform: scale(1.1);
    border-color: var(--white);
    box-shadow: var(--shadow);
}

/* Form Actions */
.form-actions {
    margin-top: 2rem;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    background: var(--white);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.02);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.drop-zone-content svg {
    color: var(--gray-400);
}

.drop-zone-content p {
    margin: 0;
    color: var(--gray-600);
}

.drop-zone-content span {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Upload Progress */
.upload-progress-container {
    margin-bottom: 2rem;
}

.upload-item {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.upload-item.success {
    background: rgba(16, 185, 129, 0.05);
}

.upload-item.error {
    background: rgba(239, 68, 68, 0.05);
}

.upload-item-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.upload-item-name {
    font-weight: 500;
    color: var(--gray-700);
}

.upload-item-size {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.upload-item-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-fill.success {
    background: var(--success);
}

.progress-fill.error {
    background: var(--danger);
}

.progress-text {
    min-width: 40px;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Images Grid */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.image-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.image-card.generating {
    opacity: 0.7;
    pointer-events: none;
}

.image-card.generating::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .image-preview img {
    transform: scale(1.05);
}

.image-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.375rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-card:hover .image-actions {
    opacity: 1;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
}

.btn-icon:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-icon.danger:hover {
    background: var(--danger);
    color: var(--white);
}

.image-status {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-info {
    padding: 1rem;
}

.image-name {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-description {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Image Detail Layout */
.image-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

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

.detail-image {
    width: 100%;
    border-radius: var(--radius);
}

.image-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-weight: 500;
    color: var(--gray-900);
}

/* Description Editor */
.description-editor textarea {
    min-height: 150px;
}

/* Social Platforms */
.social-platforms {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-platform-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.social-platform-item.has-content {
    border-color: var(--success);
}

.social-platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    background: var(--gray-50);
    transition: background 0.2s ease;
}

.social-platform-header:hover {
    background: var(--gray-100);
}

.platform-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    background: var(--gray-200);
}

.platform-icon.x { background: #000; }
.platform-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.platform-icon.tiktok { background: #000; }
.platform-icon.linkedin { background: #0077b5; }
.platform-icon.facebook { background: #1877f2; }
.platform-icon.youtube { background: #ff0000; }
.platform-icon.threads { background: #000; }
.platform-icon.reddit { background: #ff4500; }
.platform-icon.pinterest { background: #bd081c; }
.platform-icon.bluesky { background: #0085ff; }
.platform-icon.google_business { background: #4285f4; }

.platform-name {
    font-weight: 500;
    color: var(--gray-700);
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--success);
    color: var(--white);
}

.chevron {
    transition: transform 0.2s ease;
    color: var(--gray-400);
}

.social-platform-content {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

/* Project Description Banner */
.project-description-banner {
    background: var(--gray-100);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    color: var(--gray-600);
}

.project-description-banner p {
    margin: 0;
}

/* Text utilities */
.text-sm {
    font-size: 0.875rem;
}

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

/* Prompt Templates */
.prompt-templates {
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

/* Form Textarea */
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
    resize: vertical;
    min-height: 80px;
}

.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

/* Section Header */
.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* ===========================================
   Scheduling Components
   =========================================== */

/* Form Row for inline fields */
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group-half {
    flex: 1;
    min-width: 200px;
}

/* Schedule Options */
.schedule-options {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

/* Weekday Selector */
.weekday-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.weekday-option {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

.weekday-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.weekday-option:hover span {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.05);
}

.weekday-option input[type="radio"]:checked + span {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

/* Schedule Preview */
.schedule-preview {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
}

.schedule-preview-icon {
    flex-shrink: 0;
    color: var(--primary);
}

.schedule-preview-text {
    flex: 1;
}

.schedule-preview-text p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

/* ===========================================
   Calendar Component
   =========================================== */

.calendar-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: capitalize;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-weekday {
    padding: 1rem 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.calendar-day {
    min-height: 100px;
    padding: 0.5rem;
    border-right: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    position: relative;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day.other-month {
    background: var(--gray-50);
}

.calendar-day.other-month .day-number {
    color: var(--gray-400);
}

.calendar-day.today {
    background: rgba(99, 102, 241, 0.05);
}

.calendar-day.today .day-number {
    background: var(--primary);
    color: var(--white);
}

.day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-full);
    margin-bottom: 0.25rem;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-event {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: var(--primary-light);
    color: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event:hover {
    background: var(--primary);
}

.calendar-event.published {
    background: var(--success);
}

.calendar-event.draft {
    background: var(--gray-400);
}

.calendar-event-img {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.calendar-event-time {
    font-weight: 500;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
}

.legend-dot.scheduled {
    background: var(--primary-light);
}

.legend-dot.published {
    background: var(--success);
}

.legend-dot.draft {
    background: var(--gray-400);
}

/* Schedule List View */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.schedule-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.schedule-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

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

.schedule-item-title {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-item-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

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

/* Schedule Status Badge */
.schedule-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.schedule-badge.scheduled {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.schedule-badge.published {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.schedule-badge.draft {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray-600);
}

/* Schedule Info Banner */
.schedule-info-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.schedule-info-banner svg {
    flex-shrink: 0;
    color: var(--primary);
}

.schedule-info-banner .info-content {
    flex: 1;
}

.schedule-info-banner .info-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.schedule-info-banner .info-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 0.25rem;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.view-toggle-btn:hover {
    color: var(--gray-900);
}

.view-toggle-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Drag and drop for reordering */
.schedule-item.dragging {
    opacity: 0.5;
    border-style: dashed;
}

.schedule-item.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* ===========================================
   Dashboard & Auth Footer Links
   =========================================== */

.dashboard-footer,
.auth-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

.auth-footer {
    background: transparent;
    border-top: none;
    padding: 2rem 0 1rem;
}

.footer-links-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-links-inline a {
    color: var(--gray-500);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

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

.auth-footer .footer-links-inline a {
    color: rgba(255, 255, 255, 0.7);
}

.auth-footer .footer-links-inline a:hover {
    color: var(--white);
}

.footer-separator {
    color: var(--gray-300);
    font-size: 0.75rem;
}

.auth-footer .footer-separator {
    color: rgba(255, 255, 255, 0.4);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin: 0;
}

.auth-footer .footer-copyright {
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-links-inline {
        gap: 0.375rem;
    }

    .footer-links-inline a {
        font-size: 0.8125rem;
    }
}

/* ========================================
   TOP BAR - Modern Account Management
   ======================================== */
.topbar {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    height: 56px;
    background: linear-gradient(135deg, rgba(255,255,255,0.97) 0%, rgba(249,250,251,0.97) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1.5rem;
    gap: 1rem;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--gray-100);
    padding: 0.375rem;
    border-radius: 14px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-500);
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}

.topbar-item:hover {
    color: var(--gray-700);
    background: rgba(255,255,255,0.6);
}

.topbar-item.active {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

.topbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s ease;
}

.topbar-item.active .topbar-icon {
    background: linear-gradient(135deg, var(--primary) 0%, #ea580c 100%);
}

.topbar-item.active .topbar-icon svg {
    stroke: white;
}

.topbar-icon svg {
    width: 18px;
    height: 18px;
}

.topbar-label {
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.topbar-divider {
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, transparent 0%, var(--gray-300) 50%, transparent 100%);
    margin: 0 0.25rem;
}

.topbar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--gray-400);
    transition: all 0.2s ease;
    text-decoration: none;
}

.topbar-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    transform: translateX(2px);
}

.topbar-logout svg {
    width: 20px;
    height: 20px;
}

/* Dashboard layout with topbar */
.dashboard-layout.has-topbar .main-content {
    padding-top: calc(56px + 2rem);
}

.dashboard-layout.has-topbar .sidebar {
    top: 0;
}

/* Tablet responsiveness */
@media (max-width: 1024px) {
    .topbar {
        left: 0;
        padding: 0 1rem;
        padding-left: 4rem;
    }

    .topbar-label {
        display: none;
    }

    .topbar-item {
        padding: 0.375rem;
    }

    .topbar-nav {
        padding: 0.3rem;
        gap: 0.25rem;
    }
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .topbar {
        height: 52px;
        padding-left: 3.5rem;
        padding-right: 0.75rem;
        gap: 0.5rem;
    }

    .topbar-nav {
        background: transparent;
        padding: 0;
        gap: 0.25rem;
    }

    .topbar-item {
        padding: 0.25rem;
        background: var(--gray-100);
        border-radius: 10px;
    }

    .topbar-item:hover {
        background: var(--gray-200);
    }

    .topbar-item.active {
        background: var(--white);
    }

    .topbar-icon {
        width: 36px;
        height: 36px;
    }

    .topbar-divider {
        display: none;
    }

    .topbar-logout {
        width: 36px;
        height: 36px;
        background: var(--gray-100);
        border-radius: 10px;
    }

    .dashboard-layout.has-topbar .main-content {
        padding-top: calc(52px + 1rem);
    }
}
