/* ============================================================
   ATLAS BROKERAGE — Design System
   Premium dark theme with gold accents
   ============================================================ */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* — Colors — */
    --bg-primary: #070b1a;
    --bg-secondary: #0c1229;
    --bg-card: rgba(15, 23, 55, 0.65);
    --bg-card-hover: rgba(20, 30, 70, 0.8);
    --bg-glass: rgba(12, 18, 41, 0.55);

    --text-primary: #f0f0f5;
    --text-secondary: #8a8fa8;
    --text-muted: #555b75;

    --gold: #c9a84c;
    --gold-light: #e2c96a;
    --gold-dark: #9e8338;
    --gold-glow: rgba(201, 168, 76, 0.25);

    --accent-green: #2ecc71;
    --accent-red: #e74c3c;
    --accent-blue: #3b82f6;

    --border: rgba(201, 168, 76, 0.12);
    --border-strong: rgba(201, 168, 76, 0.3);

    /* — Gradients — */
    --gradient-gold: linear-gradient(135deg, #c9a84c, #e2c96a);
    --gradient-dark: linear-gradient(180deg, #070b1a 0%, #0c1229 100%);
    --gradient-hero: linear-gradient(160deg, rgba(7,11,26,0.95) 0%, rgba(12,18,41,0.9) 50%, rgba(7,11,26,0.95) 100%);
    --gradient-card: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, rgba(12,18,41,0.6) 100%);

    /* — Typography — */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* — Spacing — */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --container-padding: 0 24px;

    /* — Border Radius — */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* — Shadows — */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border);
    --shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);

    /* — Transitions — */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* — Navbar — */
    --navbar-height: 72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--gold-light);
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

::selection {
    background: var(--gold);
    color: var(--bg-primary);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.section-title .gold {
    color: var(--gold);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 60px;
    font-weight: 300;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 16px auto 20px;
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(201, 168, 76, 0.3);
    color: var(--bg-primary);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}
.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* ============================================================
   ANIMATED BACKGROUND (particles / grid effect)
   ============================================================ */
.bg-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}
.bg-glow--gold {
    background: var(--gold);
    top: -200px;
    right: -100px;
}
.bg-glow--blue {
    background: var(--accent-blue);
    bottom: 20%;
    left: -200px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(7, 11, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.navbar__logo img {
    height: 38px;
    width: auto;
}

.navbar__logo .logo-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar__links {
    display: flex;
    gap: 6px;
}

.navbar__links a {
    padding: 8px 18px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar__links a:hover,
.navbar__links a.active {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.navbar__cta {
    display: flex;
    align-items: center;
}

/* Mobile burger */
.navbar__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}
.navbar__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}
.navbar__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar__burger.active span:nth-child(2) {
    opacity: 0;
}
.navbar__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero__bg-image {
    position: absolute;
    inset: 0;
    background: url('/static/images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--border-strong);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}

.hero__badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero__title .gold {
    color: var(--gold);
    position: relative;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    font-weight: 300;
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    flex-wrap: wrap;
}

.hero__stat {
    text-align: center;
}
.hero__stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}
.hero__stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.about__feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.about__feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
}

.about__feature-text h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.about__feature-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.about__image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about__image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.about__image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    pointer-events: none;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-gold);
    background: var(--bg-card-hover);
}

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

.service-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all var(--transition-normal);
}

.service-card:hover .service-card__icon {
    background: rgba(201, 168, 76, 0.18);
    border-color: var(--border-strong);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
}

.service-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card__desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================================
   QUOTES SECTION
   ============================================================ */
.quotes {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.quotes__table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.quotes__table {
    width: 100%;
    border-collapse: collapse;
}

.quotes__table thead {
    background: rgba(201, 168, 76, 0.06);
}

.quotes__table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.quotes__table td {
    padding: 16px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.05);
    transition: background var(--transition-fast);
}

.quotes__table tbody tr:hover td {
    background: rgba(201, 168, 76, 0.04);
}

.quotes__table tbody tr:last-child td {
    border-bottom: none;
}

.quote-symbol {
    font-weight: 700;
    color: var(--gold);
    font-size: 0.95rem;
}

.quote-name {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 2px;
}

.quote-price {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.quote-change {
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}

.quote-change.positive {
    color: var(--accent-green);
    background: rgba(46, 204, 113, 0.1);
}

.quote-change.negative {
    color: var(--accent-red);
    background: rgba(231, 76, 60, 0.1);
}

.quotes__updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 16px;
}

/* ============================================================
   DOCUMENTS SECTION
   ============================================================ */
.documents {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

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

.doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.doc-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
    color: var(--text-primary);
}

.doc-card__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #e74c3c;
}

.doc-card__info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.doc-card__info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================================
   CONTACTS SECTION
   ============================================================ */
.contacts {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
}

.contact-item__text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item__text p,
.contact-item__text a {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.contacts__form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
}

.contacts__form h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(7, 11, 26, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 48px 0 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer__brand {
    max-width: 320px;
}

.footer__brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer__brand-name .gold {
    color: var(--gold);
}

.footer__brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer__links h4 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer__links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--gold);
}

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-messages {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.flash-msg {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    border: 1px solid;
    animation: flash-in 0.35s ease-out;
}

.flash-msg.success {
    background: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.3);
    color: var(--accent-green);
}

.flash-msg.error {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.3);
    color: var(--accent-red);
}

.flash-msg.info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}

@keyframes flash-in {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */

/* Login page */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--gradient-dark);
}

.admin-login__card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    box-shadow: var(--shadow-lg);
}

.admin-login__title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.admin-login__subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 32px;
}

/* Dashboard */
.admin-dashboard {
    min-height: 100vh;
    padding: 24px;
    padding-top: calc(var(--navbar-height) + 24px);
    background: var(--gradient-dark);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header h1 {
    font-size: 1.8rem;
}

.admin-header h1 .gold {
    color: var(--gold);
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.admin-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Admin form */
.admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    align-items: end;
}

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

.admin-form .btn {
    align-self: end;
    height: 44px;
}

/* Admin table */
.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.05);
    white-space: nowrap;
}

.admin-table tbody tr:hover td {
    background: rgba(201, 168, 76, 0.04);
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

/* Inline edit form in table */
.inline-form {
    display: contents;
}

.inline-form input {
    width: 100%;
    min-width: 80px;
    padding: 6px 10px;
    background: rgba(7, 11, 26, 0.6);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.inline-form input:focus {
    border-color: var(--gold);
    outline: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image-wrapper {
        order: -1;
    }

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

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

    .hero__stats {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 72px 0;
        --navbar-height: 64px;
    }

    .navbar__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(7, 11, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 28px 28px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        border-left: 1px solid var(--border);
    }

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

    .navbar__burger {
        display: flex;
    }

    .navbar__cta {
        display: none;
    }

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

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__stats {
        gap: 24px;
    }

    .hero__stat-value {
        font-size: 1.5rem;
    }

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

    .footer__top {
        flex-direction: column;
    }

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

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

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 60px;
    }

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

    .quotes__table th,
    .quotes__table td {
        padding: 12px 14px;
        font-size: 0.82rem;
    }
}
