/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1c2d4d;
    --secondary-color: #CCE2FC;
    --gold-color: #A79479;

    --color-bg: #ffffff;
    --color-bg-dark: #1c2d4d;
    --color-bg-card: #f8f9fa;
    --color-text-primary: #1c2d4d;
    --color-text-secondary: #6b7280;
    --color-text-light: #9ca3af;
    --color-text-white: #ffffff;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --font-primary: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.2s ease;

    --grey-background: rgba(248, 249, 247, 1);
    --grey-text-colour: rgba(0, 0, 0, 1);


}

html {
    height: 100%;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    height: 64px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.navbar__logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-color);
    animation: gold-flash 1s infinite;
}
@keyframes gold-flash {
    0%   { background: #D4AF37; }   /* classic gold */
    20%  { background: #FFF4CC; }   /* light reflection */
    40%  { background: #FFD700; }   /* vivid gold */
    60%  { background: #A79479; }   /* muted base gold */
    80%  { background: #FFC94D; }   /* bright highlight gold */
    100% { background: #D4AF37; }   /* back to gold */
}
.navbar__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.navbar__link:hover {
    color: var(--primary-color);
    background: var(--color-bg-card);
}

.navbar__link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar__user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding-right: 12px;
    border-right: 1px solid var(--color-border);
}

.navbar__user svg {
    width: 16px;
    height: 16px;
    color: var(--gold-color);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--outline {
    border: 1.5px solid var(--color-border);
    color: var(--color-text-primary);
    background: transparent;
}

.btn--outline:hover {
    border-color: var(--primary-color);
    background: var(--color-bg-card);
}

.btn--primary {
    background: var(--primary-color);
    color: var(--color-text-white);
    border: 1.5px solid var(--primary-color);
}

.btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== DROPDOWN MENUS ===== */
.navbar__dropdown {
    position: relative;
}

.navbar__link--trigger {
    cursor: pointer;
}

.navbar__chevron {
    width: 12px !important;
    height: 12px !important;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.navbar__dropdown:hover .navbar__chevron {
    transform: rotate(180deg);
    opacity: 0.8;
}

.navbar__dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 100;
}

.navbar__dropdown-panel::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.navbar__dropdown:hover .navbar__dropdown-panel,
.navbar__dropdown:focus-within .navbar__dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.navbar__dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.navbar__dropdown-item:hover {
    background: var(--color-bg-card);
}

.navbar__dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--gold-color);
    opacity: 0.7;
}

.navbar__dropdown-item:hover svg {
    opacity: 1;
}

.navbar__dropdown-title {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.navbar__dropdown-desc {
    display: block;
    font-size: 0.72rem;
    color: var(--color-text-light);
    line-height: 1.3;
    margin-top: 1px;
}

/* ===== MAIN CONTENT ===== */
main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* ===== FOOTER ===== */

.footer {
    background: var(--primary-color);
    color: var(--color-text-white);
    padding: 56px 0 0;
    margin-top: auto;
    flex-shrink: 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer__logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text-white);
    letter-spacing: -0.02em;
    display: inline-block;
    margin-bottom: 12px;
}

.footer__desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 280px;
}

.footer__heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer__col-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer__col-links a:hover {
    color: var(--color-text-white);
}

.footer__col-links svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.5;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer__bottom-links {
    display: flex;
    gap: 24px;
}

.footer__bottom-links a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer__bottom-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.navbar__dropdown--right .navbar__dropdown-panel {
    left: auto;
    right: 0;
    transform: translateY(4px);
}

.navbar__dropdown--right:hover .navbar__dropdown-panel,
.navbar__dropdown--right:focus-within .navbar__dropdown-panel {
    transform: translateY(0);
}

.navbar__dropdown-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: 4px 0;
}

.navbar__dropdown-item--danger .navbar__dropdown-title {
    color: #dc2626;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .navbar__nav {
        display: none;
    }
    .navbar__dropdown-panel {
        display: none;
    }

    .navbar__user {
        display: none;
    }

    .navbar__actions .btn--outline {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
