/*
|--------------------------------------------------------------------------
| Royal Servicess LLC — Onyx Elegance
|--------------------------------------------------------------------------
|
| Shared build-free visual foundation.
|
| Public/customer pages may later use more expressive presentation.
| Staff/admin workflows deliberately remain more restrained so that
| operational status and actions remain clear.
|
*/

:root {
    color-scheme: dark;

    --onyx-950: #0b0b0c;
    --onyx-900: #121212;
    --onyx-850: #151516;
    --onyx-800: #1a1a1b;
    --onyx-750: #202022;

    --silver-100: #f2f2f2;
    --silver-200: #dddddd;
    --silver-300: #c0c0c0;
    --silver-400: #9a9a9f;
    --silver-500: #77777d;

    --gold-100: #f4e4a7;
    --gold-200: #e7cc73;
    --gold-300: #d4af37;
    --gold-400: #ae8825;
    --gold-500: #7b5f16;

    --danger-100: #ffd9d9;
    --danger-300: #e88484;
    --danger-700: #6b2020;

    --success-100: #d8f2df;
    --success-300: #7dc391;
    --success-700: #1f5a31;

    --glass-bg:
        rgba(24, 24, 26, 0.72);

    --glass-bg-strong:
        rgba(18, 18, 19, 0.88);

    --glass-border:
        rgba(212, 175, 55, 0.20);

    --glass-border-silver:
        rgba(192, 192, 192, 0.16);

    --glass-highlight:
        rgba(255, 255, 255, 0.055);

    --shadow-soft:
        0 20px 60px rgba(0, 0, 0, 0.34);

    --shadow-gold:
        0 12px 42px rgba(212, 175, 55, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --content-width: 1180px;

    --font-display:
        Georgia,
        "Times New Roman",
        Times,
        serif;

    --font-body:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    --transition-luxury:
        400ms ease-out;
}


/*
|--------------------------------------------------------------------------
| Reset / document
|--------------------------------------------------------------------------
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--onyx-950);
}

body {
    min-height: 100vh;
    margin: 0;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(212, 175, 55, 0.08),
            transparent 32rem
        ),
        radial-gradient(
            circle at 85% 14%,
            rgba(192, 192, 192, 0.055),
            transparent 28rem
        ),
        linear-gradient(
            145deg,
            var(--onyx-950) 0%,
            var(--onyx-900) 42%,
            #101011 100%
        );

    background-attachment: fixed;

    color: var(--silver-200);

    font-family: var(--font-body);

    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;

    content: "";

    pointer-events: none;

    background:
        linear-gradient(
            115deg,
            transparent 0%,
            rgba(255, 255, 255, 0.015) 48%,
            transparent 52%
        );

    opacity: 0.75;
}

::selection {
    background: rgba(212, 175, 55, 0.34);
    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Typography
|--------------------------------------------------------------------------
*/

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: var(--silver-100);

    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.16;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
    font-size: clamp(1.45rem, 3vw, 2.2rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

p {
    margin-top: 0;
}

strong {
    color: var(--silver-100);
}

.muted {
    color: var(--silver-400);
}

a {
    color: var(--gold-200);

    text-decoration-color:
        rgba(212, 175, 55, 0.48);

    text-underline-offset: 0.18em;

    transition:
        color 220ms ease,
        text-decoration-color 220ms ease;
}

a:hover {
    color: var(--gold-100);

    text-decoration-color:
        rgba(244, 228, 167, 0.9);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold-200);
    outline-offset: 3px;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;

    border-bottom:
        1px solid rgba(212, 175, 55, 0.13);

    background:
        rgba(12, 12, 13, 0.78);

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.22);

    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
}

.site-header__inner {
    display: flex;
    width:
        min(
            var(--content-width),
            calc(100% - 40px)
        );

    min-height: 74px;
    margin: 0 auto;

    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;

    color: var(--silver-100);

    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: 0.04em;

    text-decoration: none;

    text-shadow:
        0 0 24px rgba(212, 175, 55, 0.10);
}

.brand::before {
    width: 7px;
    height: 7px;
    margin-right: 11px;

    border: 1px solid var(--gold-300);
    border-radius: 50%;

    background: var(--gold-300);

    box-shadow:
        0 0 14px rgba(212, 175, 55, 0.65);

    content: "";

    align-self: center;
}


/*
|--------------------------------------------------------------------------
| Main page structure
|--------------------------------------------------------------------------
*/

.page-container {
    width:
        min(
            var(--content-width),
            calc(100% - 40px)
        );

    margin: 42px auto 72px;
}

.card {
    position: relative;

    overflow: hidden;

    border:
        1px solid var(--glass-border-silver);

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        ),
        var(--glass-bg);

    box-shadow:
        inset 0 1px 0 var(--glass-highlight),
        var(--shadow-soft);

    padding: clamp(22px, 4vw, 34px);

    backdrop-filter: blur(34px);
    -webkit-backdrop-filter: blur(34px);

    transition:
        transform var(--transition-luxury),
        border-color var(--transition-luxury),
        box-shadow var(--transition-luxury),
        background var(--transition-luxury);
}

.card::before {
    position: absolute;
    top: 0;
    left: -135%;

    width: 75%;
    height: 100%;

    background:
        linear-gradient(
            105deg,
            transparent 10%,
            rgba(212, 175, 55, 0.02) 30%,
            rgba(244, 228, 167, 0.13) 50%,
            rgba(212, 175, 55, 0.025) 70%,
            transparent 90%
        );

    content: "";

    pointer-events: none;

    transform: skewX(-18deg);

    transition:
        left 700ms ease-out;
}

.card:hover {
    border-color:
        rgba(212, 175, 55, 0.32);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.075),
        var(--shadow-soft),
        var(--shadow-gold);

    transform:
        translateY(-4px)
        scale(1.008);
}

.card:hover::before {
    left: 145%;
}

.auth-card {
    max-width: 680px;
    margin: 0 auto;
}


/*
|--------------------------------------------------------------------------
| Content rows / secondary glass blocks
|--------------------------------------------------------------------------
*/

.account-row {
    margin: 14px 0;
    padding: 15px 17px;

    border:
        1px solid rgba(192, 192, 192, 0.10);

    border-radius: var(--radius-md);

    background:
        rgba(255, 255, 255, 0.025);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
        border-color var(--transition-luxury),
        background var(--transition-luxury),
        transform var(--transition-luxury);
}

.account-row:hover {
    border-color:
        rgba(212, 175, 55, 0.20);

    background:
        rgba(212, 175, 55, 0.028);

    transform:
        translateY(-2px);
}


/*
|--------------------------------------------------------------------------
| Forms
|--------------------------------------------------------------------------
*/

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;

    margin-bottom: 7px;

    color: var(--silver-200);

    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0.012em;
}

.field input,
.field select,
.field textarea,
input,
select,
textarea {
    max-width: 100%;

    border:
        1px solid rgba(192, 192, 192, 0.19);

    border-radius: var(--radius-sm);

    background:
        rgba(6, 6, 7, 0.48);

    color: var(--silver-100);

    font: inherit;

    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 13px;
}

input::placeholder,
textarea::placeholder {
    color: var(--silver-500);
}

input:hover,
select:hover,
textarea:hover {
    border-color:
        rgba(212, 175, 55, 0.32);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold-300);

    background:
        rgba(14, 14, 15, 0.78);

    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.09);
}

input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

select option {
    background: var(--onyx-800);
    color: var(--silver-100);
}

.field-error {
    margin: 7px 0 0;

    color: var(--danger-300);

    font-size: 0.9rem;
}


/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.button {
    position: relative;

    display: inline-flex;
    overflow: hidden;

    min-height: 44px;

    border:
        1px solid rgba(244, 228, 167, 0.38);

    border-radius: var(--radius-sm);

    background:
        linear-gradient(
            135deg,
            #cba333,
            var(--gold-300) 45%,
            #ad8620
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 10px 26px rgba(212, 175, 55, 0.16);

    color: #15120a;

    cursor: pointer;

    font: inherit;
    font-weight: 750;

    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    text-decoration: none;

    transition:
        transform var(--transition-luxury),
        box-shadow var(--transition-luxury),
        filter var(--transition-luxury);
}

.button::before {
    position: absolute;
    top: -45%;
    left: -70%;

    width: 42%;
    height: 190%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.55),
            transparent
        );

    content: "";

    pointer-events: none;

    transform: rotate(18deg);

    transition:
        left 620ms ease-out;
}

.button:hover {
    color: #0c0b07;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 12px 34px rgba(212, 175, 55, 0.28);

    filter: brightness(1.06);

    transform:
        translateY(-2px)
        scale(1.015);
}

.button:hover::before {
    left: 130%;
}

.button:active {
    transform:
        translateY(0)
        scale(0.99);
}

.button[disabled],
.button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.5);
    opacity: 0.52;

    transform: none;
}


/*
|--------------------------------------------------------------------------
| Notices / operational messages
|--------------------------------------------------------------------------
*/

.notice {
    margin-bottom: 20px;
    padding: 14px 16px;

    border:
        1px solid rgba(212, 175, 55, 0.22);

    border-radius: var(--radius-md);

    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    color: var(--silver-200);
}


/*
|--------------------------------------------------------------------------
| Tables
|--------------------------------------------------------------------------
*/

table {
    width: 100%;

    border-collapse: collapse;

    color: var(--silver-200);
}

th,
td {
    border-bottom:
        1px solid rgba(192, 192, 192, 0.10);

    padding: 12px 10px;

    text-align: left;
    vertical-align: top;
}

th {
    color: var(--gold-200);

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.065em;

    text-transform: uppercase;
}

tr {
    transition:
        background 200ms ease;
}

tbody tr:hover {
    background:
        rgba(212, 175, 55, 0.028);
}


/*
|--------------------------------------------------------------------------
| Horizontal rules / code
|--------------------------------------------------------------------------
*/

hr {
    height: 1px;
    margin: 26px 0;

    border: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 175, 55, 0.23),
            transparent
        );
}

code {
    border:
        1px solid rgba(192, 192, 192, 0.12);

    border-radius: 6px;

    background:
        rgba(0, 0, 0, 0.38);

    color: var(--gold-100);

    padding: 2px 6px;
}


/*
|--------------------------------------------------------------------------
| Motion accessibility
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.001ms !important;
    }

    .card:hover,
    .account-row:hover,
    .button:hover {
        transform: none;
    }

    .card::before,
    .button::before {
        display: none;
    }
}


/*
|--------------------------------------------------------------------------
| Responsive behavior
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {
    .site-header__inner {
        width: calc(100% - 28px);
        min-height: 66px;
    }

    .page-container {
        width: calc(100% - 28px);
        margin-top: 26px;
        margin-bottom: 46px;
    }

    .card {
        border-radius: var(--radius-md);
        padding: 20px;
    }

    .account-row {
        padding: 13px 14px;
    }

    table {
        font-size: 0.91rem;
    }

    th,
    td {
        padding:
            10px
            7px;
    }
}


/*
|--------------------------------------------------------------------------
| Backdrop-filter fallback
|--------------------------------------------------------------------------
*/

@supports not (
    (backdrop-filter: blur(1px))
    or
    (-webkit-backdrop-filter: blur(1px))
) {
    .site-header {
        background:
            rgba(12, 12, 13, 0.98);
    }

    .card {
        background:
            var(--onyx-800);
    }
}
