/* ============================================
   BarberTime - Certificate Registration System
   Modern Professional UI with Dark/Light Mode
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
    /* Primary Colors */
    /* Primary Colors - Gold & Onyx Theme */
    --primary: #c5a059;
    --primary-light: #d4af37;
    --primary-dark: #b8860b;
    --secondary: #1a1a2e;
    --secondary-light: #55efc4;
    --accent: #fd79a8;
    --accent-light: #fab1c4;

    /* Light Mode */
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f1f3f8;
    --bg-hover: #eef0f7;
    --bg-glass: rgba(255, 255, 255, 0.85);

    --text-primary: #1a1a2e;
    --text-secondary: #636e82;
    --text-muted: #9aa5b4;
    --text-on-primary: #ffffff;

    --border-color: #e4e8f0;
    --border-light: #f0f2f7;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(197, 160, 89, 0.15);

    --gradient-primary: linear-gradient(135deg, #c5a059, #e5c07b);
    --gradient-secondary: linear-gradient(135deg, #1a1a2e, #2a2a4a);
    --gradient-accent: linear-gradient(135deg, #e74c3c, #ff7675);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #2a2a4a 50%, #c5a059 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    --navbar-height: 80px;
    --sidebar-width: 280px;

    /* Professional Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-elegant: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-focus: 0 0 0 4px rgba(197, 160, 89, 0.15);
}

/* ============ DARK MODE ============ */
[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #1e1e35;
    --bg-input: #252542;
    --bg-hover: #2a2a4a;
    --bg-glass: rgba(30, 30, 53, 0.9);

    --text-primary: #e8e8f0;
    --text-secondary: #a0a0bc;
    --text-muted: #6c6c8a;

    --border-color: #2d2d50;
    --border-light: #252542;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.25);

    --gradient-glass: linear-gradient(135deg, rgba(30, 30, 53, 0.95), rgba(30, 30, 53, 0.7));
}

/* ============ BASE RESET ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #0a0a0f;
    /* Match footer to hide any gaps at the absolute bottom */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Fix potential horizontal scroll white bars */
}

body {
    font-family: var(--font-secondary);
    background: #0a0a0f;
    /* Match footer to prevent white gaps at bottom/edges */
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main,
.section-wrapper {
    background: var(--bg-primary);
    flex: 1;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* ============ UTILITY CLASSES ============ */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary-c {
    color: var(--secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: #00b894 !important;
}

.text-danger {
    color: #e17055 !important;
}

.text-warning {
    color: #fdcb6e !important;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-brand span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-nav a {
    padding: 8px 18px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--primary);
    background: rgba(197, 160, 89, 0.1);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(30deg);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.45);
    color: #fff;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(0, 206, 201, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #e17055, #d63031);
    color: #fff;
    box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ CARDS ============ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 32px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.card:hover {
    box-shadow: var(--shadow-elegant);
    transform: translateY(-8px);
}

.card-glass {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.card-body {
    position: relative;
}

/* ============ FORMS ============ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
    background: var(--bg-secondary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:read-only {
    opacity: 0.7;
    cursor: not-allowed;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e82' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    font-size: 0.82rem;
    color: #e17055;
    margin-top: 6px;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.file-upload-area i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.file-upload-area p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-preview {
    margin-top: 12px;
}

.file-preview img {
    max-width: 120px;
    max-height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--border-color);
}

/* ============ HERO / SLIDER ============ */
.hero-section {
    position: relative;
    margin-top: var(--navbar-height);
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 640px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.hero-dot.active {
    background: #fff;
    width: 36px;
    border-radius: 6px;
}

/* Hero Fallback (no sliders) */
.hero-fallback {
    margin-top: var(--navbar-height);
    min-height: 500px;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-fallback::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.hero-fallback::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
}

.hero-fallback .hero-content {
    position: relative;
    z-index: 2;
}

/* ============ SECTIONS ============ */
.section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.section-light {
    background: var(--bg-primary);
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.section-header .section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px;
    text-align: center;
    border-top: 4px solid var(--primary);
}

.feature-card .icon-box {
    width: 80px;
    height: 80px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background: var(--primary);
    color: #fff;
    transform: rotate(10deg);
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Steps section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    counter-reset: step-counter;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    counter-increment: step-counter;
    position: relative;
}

.step-card .step-number {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============ VERIFY SECTION ============ */
.verify-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.verify-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.verify-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.verify-card h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}

.verify-card p {
    opacity: 0.9;
    margin-bottom: 24px;
}

.verify-input-group {
    display: flex;
    gap: 12px;
    max-width: 450px;
    margin: 0 auto;
}

.verify-input-group input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.verify-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.verify-input-group input:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* ============ FOOTER ============ */
.footer {
    background: #0a0a0f;
    color: #fff;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    width: 100%;
    position: relative;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-about h3 span {
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 800;
}

.footer-about p {
    color: #a0a0bc;
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-links h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #a0a0bc;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c6c8a;
    font-size: 0.9rem;
}

.footer-bottom p a {
    color: var(--primary) !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact li i {
    color: var(--primary);
    min-width: 20px;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ============ AUTH PAGES ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg-primary);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    opacity: 0.08;
    border-radius: 50%;
    top: -200px;
    right: -200px;
    filter: blur(60px);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 40px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.auth-card .logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card .logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.auth-card .logo h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card .logo p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-top: 4px;
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--bg-card);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============ DASHBOARD LAYOUT ============ */
.dashboard-wrapper {
    margin-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
    padding: 32px 0;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.dashboard-header p {
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card .stat-icon.purple {
    background: rgba(108, 92, 231, 0.12);
    color: var(--primary);
}

.stat-card .stat-icon.teal {
    background: rgba(0, 206, 201, 0.12);
    color: var(--secondary);
}

.stat-card .stat-icon.pink {
    background: rgba(253, 121, 168, 0.12);
    color: var(--accent);
}

.stat-card .stat-icon.green {
    background: rgba(0, 184, 148, 0.12);
    color: #00b894;
}

.stat-card .stat-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
}

.stat-card .stat-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 2px;
}

/* ============ TABLES ============ */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-input);
    padding: 14px 18px;
    text-align: left;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 18px;
    border-top: 1px solid var(--border-light);
    font-size: 0.92rem;
    vertical-align: middle;
}

.data-table tr:hover td {
    background: var(--bg-hover);
}

.data-table .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-color);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-primary);
    gap: 5px;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-pending {
    background: rgba(253, 203, 110, 0.15);
    color: #f39c12;
}

.badge-pending::before {
    background: #f39c12;
}

.badge-approved,
.badge-active {
    background: rgba(0, 184, 148, 0.15);
    color: #00b894;
}

.badge-approved::before,
.badge-active::before {
    background: #00b894;
}

.badge-rejected {
    background: rgba(225, 112, 85, 0.15);
    color: #e17055;
}

.badge-rejected::before {
    background: #e17055;
}

.badge-info {
    background: rgba(197, 160, 89, 0.15);
    color: var(--primary);
}

.badge-info::before {
    background: var(--primary);
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.15rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-hover);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(225, 112, 85, 0.15);
    color: #e17055;
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ============ ALERTS ============ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.3);
    color: #00b894;
}

.alert-danger {
    background: rgba(225, 112, 85, 0.1);
    border-color: rgba(225, 112, 85, 0.3);
    color: #e17055;
}

.alert-warning {
    background: rgba(253, 203, 110, 0.1);
    border-color: rgba(253, 203, 110, 0.3);
    color: #f39c12;
}

.alert-info {
    background: rgba(197, 160, 89, 0.1);
    border-color: rgba(197, 160, 89, 0.3);
    color: var(--primary);
}

/* ============ TOAST NOTIFICATIONS ============ */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    animation: toastIn 0.3s ease;
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.toast.success .toast-icon {
    background: rgba(0, 184, 148, 0.15);
    color: #00b894;
}

.toast.error .toast-icon {
    background: rgba(225, 112, 85, 0.15);
    color: #e17055;
}

.toast.warning .toast-icon {
    background: rgba(253, 203, 110, 0.15);
    color: #f39c12;
}

.toast.info .toast-icon {
    background: rgba(197, 160, 89, 0.15);
    color: var(--primary);
}

/* ============ PAYMENT METHODS ============ */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.payment-method-card {
    padding: 20px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: var(--bg-card);
}

.payment-method-card:hover,
.payment-method-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.payment-method-card .pm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.payment-method-card .pm-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(197, 160, 89, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.payment-method-card .pm-name {
    font-weight: 700;
    font-family: var(--font-primary);
}

.payment-method-card .pm-details {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.payment-method-card .pm-details strong {
    color: var(--text-primary);
}

/* ============ CERTIFICATE ============ */
.certificate-preview {
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    color: #1a1a2e;
    box-shadow: var(--shadow-lg);
}

.certificate-preview.premium {
    background-image: url('../img/certificate_template.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: var(--radius-lg);
    width: 800px;
    height: 565px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    color: #fff;
}

.certificate-preview.premium .cert-top,
.certificate-preview.premium .cert-bottom,
.certificate-preview.premium .cert-header,
.certificate-preview.premium .cert-curve {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: none;
}

.certificate-preview.premium .cert-profile {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.certificate-preview.premium .cert-profile img {
    border: 2px solid #c5a059;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}

.certificate-preview.premium .cert-name {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    color: #e74c3c;
    font-style: italic;
    margin: 0;
    position: absolute;
    top: 360px;
    left: 0;
    width: 100%;
    text-align: center;
    display: block !important;
}

.certificate-preview.premium .cert-qr {
    position: absolute;
    bottom: 60px;
    left: 76px;
    display: block !important;
}

.certificate-preview.premium .cert-qr img {
    width: 80px;
    height: 80px;
    background: #fff;
    padding: 2px;
    border: 1px solid #ddd;
}

.certificate-preview.premium .cert-meta {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    color: #888;
    font-weight: 600;
}

@media print {
    .print-hide {
        display: none !important;
    }

    body {
        background: #fff !important;
        padding: 0 !important;
    }

    .dashboard-wrapper {
        padding: 0 !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .certificate-preview.premium {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 1000px !important;
        height: 706px !important;
        margin: 0 !important;
        transform: scale(1) !important;
        z-index: 9999 !important;
    }
}

.cert-header {
    text-align: center;
    margin-bottom: 24px;
}

.cert-header .cert-logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-primary);
    color: var(--primary);
    margin-bottom: 8px;
}

.cert-header h2 {
    font-size: 1.8rem;
    color: #1a1a2e;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cert-profile {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

.premium .cert-profile {
    margin-top: -60px;
    margin-bottom: 15px;
}

.cert-profile img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary);
    background: #fff;
}

.premium .cert-profile img {
    border-color: #c5a059;
    width: 110px;
    height: 110px;
}

.cert-body {
    text-align: center;
    margin-bottom: 24px;
}

.cert-body .cert-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-primary);
    margin-bottom: 8px;
}

.cert-body .cert-salon {
    font-size: 1.2rem;
    font-weight: 600;
    color: #636e82;
    margin-bottom: 16px;
}

.premium .cert-body .cert-salon {
    color: #333;
}

.cert-body .cert-text {
    color: #636e82;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cert-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 2px dashed #e4e8f0;
}

.cert-qr img {
    width: 100px;
    height: 100px;
}

.cert-details {
    text-align: right;
    font-size: 0.85rem;
    color: #636e82;
}

.cert-details strong {
    color: #1a1a2e;
}

.cert-number {
    font-family: monospace;
    font-size: 0.9rem;
    background: #f1f3f8;
    padding: 4px 12px;
    border-radius: 4px;
    color: var(--primary);
    display: inline-block;
    margin-top: 8px;
}

/* ============ VERIFICATION PAGE ============ */
.verify-page {
    margin-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
    padding: 60px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-result {
    max-width: 850px;
    width: 100%;
}

.verify-success {
    text-align: center;
}

.verify-success .verify-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: rgba(0, 184, 148, 0.15);
    color: #00b894;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
}

.verify-success h2 {
    color: #00b894;
    margin-bottom: 8px;
}

/* Dashboard Premium Touch */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.dashboard-header h1 {
    font-weight: 800;
    letter-spacing: -1px;
}

.badge {
    padding: 6px 16px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* ============ LOADING ============ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hide {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-hover) 50%, var(--bg-input) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(197, 160, 89, 0.4);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ============ TAB NAVIGATION ============ */
.tab-nav {
    display: flex;
    gap: 4px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.92rem;
    margin-bottom: 20px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--bg-glass);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-nav.open {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-section {
        height: 450px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .verify-input-group {
        flex-direction: column;
    }

    .auth-card {
        padding: 28px;
    }

    .certificate-preview {
        padding: 24px;
    }

    .cert-footer {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .cert-details {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============ SELECTION ============ */
::selection {
    background: rgba(197, 160, 89, 0.2);
    color: var(--primary);
}

/* ============ PRINT ============ */
@media print {

    .navbar,
    .footer,
    .theme-toggle,
    .back-to-top,
    .btn {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}