/* =====================================================================
   Owen2k6 Business Portal — Stylesheet
   Based on the Owen2k6 Network Design Language, pushed toward full
   skeuomorphism: glossed-wood header, dark woven-fabric background,
   embossed felt panels, and glossy "aqua" controls (the early-2010s web).

   All textures are procedural (inline SVG feTurbulence data-URIs) so the
   portal ships with NO binary assets — one stylesheet, nothing else.
   This file is the design experiment for the wider network re-skin.
   ===================================================================== */

:root {
    --ink:        #f1ece1;   /* warm parchment text on the dark desk        */
    --ink-soft:   #cdd5df;
    --muted:      #9fadbe;
    --link:       #a7c7ff;   /* network link blue                           */
    --link-hover: #cfe0ff;

    --felt:       #1d232b;   /* panel surface                               */
    --felt-edge:  #10141a;
    --slate:      #222a33;   /* content container                           */

    --aqua-1:     #7fd3ff;   /* glossy aqua button, top sheen               */
    --aqua-2:     #29a3e6;
    --aqua-3:     #1275b0;

    --gold:       #ffcf6b;
    --money:      #7ee08a;

    --line:       #33404d;
    --radius:     9px;
}

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

html, body { height: 100%; }

body {
    margin: 0;
    font: 15px/1.6 Verdana, Geneva, Arial, Helvetica, sans-serif;
    color: var(--ink);
    background-color: #14171b;
    /* dark woven fabric: turbulence speckle + a fine diagonal weave */
    background-image:
        repeating-linear-gradient(45deg,  rgba(255,255,255,.014) 0 2px, rgba(0,0,0,0) 2px 4px),
        repeating-linear-gradient(-45deg, rgba(0,0,0,.16) 0 2px, rgba(0,0,0,0) 2px 4px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.9' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='140' height='140' fill='%2315191e'/%3E%3Crect width='140' height='140' filter='url(%23f)' opacity='0.35'/%3E%3C/svg%3E");
    background-attachment: fixed, fixed, fixed;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    overflow-wrap: anywhere;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

code {
    font-family: "Consolas", "Menlo", monospace;
    font-size: 13px;
    color: #ffe6b0;
    background: #0f1319;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #000;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.6);
}

/* ---------------------------------------------------------------- header
   Glossed, grained wood plank with a bright top sheen and a brass rule. */
.site-header {
    position: relative;
    padding: 16px 5%;
    color: #fff8ec;
    border-bottom: 3px solid #2c1a0c;
    background-color: #5a3a1e;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,.16), rgba(255,255,255,.02) 46%, rgba(0,0,0,.28)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='130'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.014 0.093' numOctaves='4' seed='8'/%3E%3CfeColorMatrix values='0 0 0 0 0.30 0 0 0 0 0.17 0 0 0 0 0.07 0 0 0 0.85 0'/%3E%3C/filter%3E%3Crect width='340' height='130' fill='%236b4423'/%3E%3Crect width='340' height='130' filter='url(%23w)' opacity='0.6'/%3E%3C/svg%3E");
    box-shadow: 0 3px 0 #7a5a34, 0 6px 14px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.22);
}
/* thin brass beading under the plank */
.site-header::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
    background: linear-gradient(to bottom, #f6d78a, #a9781f);
}
.header-content {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: wrap;
}
.header-title {
    margin: 0;
    font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
    font-size: 1.85em; font-weight: normal; letter-spacing: .3px;
    text-shadow: 0 1px 0 rgba(255,255,255,.25), 0 2px 3px rgba(0,0,0,.75);
}
.header-title a { color: #fff8ec; }
.header-title a:hover { color: #fff; text-decoration: none; }
.header-badge {
    font-size: .5em; vertical-align: middle; margin-left: 8px;
    padding: 3px 8px; border-radius: 10px;
    color: #3a2a12; background: linear-gradient(to bottom, #ffe3a0, #e0a83f);
    border: 1px solid #8a6320; box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
    text-shadow: none; font-family: Verdana, sans-serif; letter-spacing: .4px;
}

/* nav — glassy aqua lozenges */
.header-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.header-nav a {
    color: #eaf6ff; text-decoration: none;
    padding: 6px 13px; border-radius: 8px;
    border: 1px solid rgba(0,0,0,.45);
    background: linear-gradient(to bottom, rgba(255,255,255,.20), rgba(255,255,255,.04) 50%, rgba(0,0,0,.14));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.header-nav a:hover { background: linear-gradient(to bottom, rgba(255,255,255,.30), rgba(255,255,255,.08) 50%, rgba(0,0,0,.10)); text-decoration: none; }
.header-nav a.active { background: linear-gradient(to bottom, #8fd8ff, #2b98d8); border-color: #0f5f8f; color: #04263a; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.header-nav .who { color: #f2e6cf; font-size: 13px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.header-nav .who a { padding: 0; margin-left: 6px; background: none; border: 0; box-shadow: none; color: #ffdca6; }

/* ---------------------------------------------------------------- layout */
.site-main { padding: 22px 4% 40px; }
.content-container {
    max-width: 1200px; margin: 0 auto; padding: 22px 24px 28px;
    background: linear-gradient(160deg, #262f39, #1b222a);
    border: 1px solid #0c1116;
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.03) inset,
        0 14px 30px rgba(0,0,0,.55),
        0 1px 0 rgba(255,255,255,.05) inset;
}

h1 { font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 26px; font-weight: normal; margin: 6px 0 4px; text-shadow: 0 2px 3px rgba(0,0,0,.6); }
h2 { font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 19px; font-weight: normal; margin: 0 0 14px; color: #fef4df; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
h3 { font-size: 15px; margin: 0 0 8px; color: var(--ink); }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- cards
   Embossed felt panel: 145deg felt gradient + carved inner shadows. */
.card {
    position: relative;
    background:
        linear-gradient(145deg, #232c35, #171d24);
    border: 1px solid #0b0f14;
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 16px 0;
    box-shadow:
        inset 2px 2px 6px rgba(0,0,0,.55),
        inset -2px -2px 6px rgba(255,255,255,.035),
        0 6px 14px rgba(0,0,0,.35);
}
.card > h2:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- tables */
.grid { width: 100%; border-collapse: collapse; }
.grid th, .grid td { text-align: left; padding: 10px 12px; }
.grid thead th {
    color: #cbb78d; font-weight: bold; font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
    background: linear-gradient(to bottom, #161c22, #10151a);
    border-bottom: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.grid tbody tr { border-bottom: 1px solid rgba(0,0,0,.5); box-shadow: 0 1px 0 rgba(255,255,255,.03); }
.grid tbody tr:nth-child(even) { background: rgba(255,255,255,.018); }
.grid tbody tr:hover { background: rgba(127,211,255,.06); }
.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--money); }

/* ---------------------------------------------------------------- buttons
   Glossy aqua pill with a real top sheen and a soft drop shadow. */
.btn, button {
    display: inline-block;
    font: bold 13px/1 Verdana, sans-serif;
    color: #04283b; text-decoration: none; text-shadow: 0 1px 0 rgba(255,255,255,.45);
    padding: 8px 15px; border-radius: 9px; cursor: pointer;
    border: 1px solid #0c5a86;
    background: linear-gradient(to bottom, #a6e2ff 0%, #5ec0f2 48%, #2ea1e4 50%, #1b8ad2 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 2px rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.4);
}
.btn:hover, button:hover { text-decoration: none; background: linear-gradient(to bottom, #b8e9ff 0%, #6fcaf6 48%, #3aabec 50%, #2497da 100%); }
.btn:active, button:active { box-shadow: inset 0 2px 4px rgba(0,0,0,.4); transform: translateY(1px); }

button.danger, .btn.danger {
    color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.5); border-color: #7a1c10;
    background: linear-gradient(to bottom, #f08a7a 0%, #e0604a 48%, #cc4230 50%, #b1301f 100%);
}
button.danger:hover, .btn.danger:hover { background: linear-gradient(to bottom, #ff9c8c 0%, #e86e58 48%, #d64e3a 50%, #bd3625 100%); }

.inline { display: inline-block; margin: 0 5px 5px 0; vertical-align: middle; }
.actions form { display: inline-block; }

/* ---------------------------------------------------------------- forms */
label { display: block; margin: 12px 0; color: var(--ink-soft); font-size: 13px; }
label.check { display: flex; align-items: center; gap: 9px; }
input[type=text], input[type=password], select {
    width: 100%; max-width: 340px; margin-top: 5px;
    padding: 9px 11px; color: var(--ink);
    background: #0e1319; border: 1px solid #000; border-radius: 7px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.6), inset 0 -1px 0 rgba(255,255,255,.04);
    font: 14px Verdana, sans-serif;
}
input[type=text]:focus, input[type=password]:focus, select:focus {
    outline: none; border-color: #2ea1e4;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.6), 0 0 0 2px rgba(46,161,228,.35);
}
.inline input[type=text], .inline select { width: auto; display: inline-block; margin-top: 0; }

.perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 16px; margin: 10px 0; }
.perms label.check { margin: 3px 0; }
.rank { border-top: 1px solid rgba(0,0,0,.5); box-shadow: 0 -1px 0 rgba(255,255,255,.04); padding: 14px 0; }
.rank:first-of-type { border-top: 0; box-shadow: none; }
.rank-actions { margin-top: 10px; }

/* ---------------------------------------------------------------- badges
   Small glossy engraved pills. */
.tag {
    font-size: 11px; font-weight: bold; padding: 2px 9px; border-radius: 10px; vertical-align: middle;
    color: #05301a; background: linear-gradient(to bottom, #9df0b4, #43c46b);
    border: 1px solid #1c7a3e; box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.status {
    font-size: 11px; font-weight: bold; padding: 3px 10px; border-radius: 10px; text-transform: uppercase; letter-spacing: .5px;
    border: 1px solid rgba(0,0,0,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.status.open { color: #d7ecff; background: linear-gradient(to bottom, #2f63c0, #1e3f86); }
.status.paid { color: #c6f7dc; background: linear-gradient(to bottom, #1f8a5c, #0c4e33); }
.status.void { color: #e2e2e6; background: linear-gradient(to bottom, #55565c, #34353a); }

/* ---------------------------------------------------------------- alerts */
.alert { padding: 12px 15px; border-radius: 8px; margin: 14px 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 6px rgba(0,0,0,.3); }
.alert.ok  { background: linear-gradient(to bottom, #123c28, #0c2a1c); color: #b8f3ce; border: 1px solid #1c7a45; }
.alert.err { background: linear-gradient(to bottom, #3c1717, #2a1010); color: #ffc9c0; border: 1px solid #8a2a1c; }

/* ---------------------------------------------------------------- footer */
.site-footer {
    max-width: 1200px; margin: 26px auto 0; padding: 18px 24px;
    color: var(--muted); font-size: 13px; line-height: 1.7;
    border-top: 1px solid rgba(255,255,255,.06);
}
.site-footer .copyright { color: #8b96a4; }
.site-footer a { color: var(--link); }

/* ---------------------------------------------------------------- login
   A framed felt panel sitting on the fabric desk. */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-card {
    width: 380px; max-width: 92vw; padding: 30px 30px 34px;
    background: linear-gradient(145deg, #232c35, #171d24);
    border: 1px solid #0b0f14; border-radius: 14px;
    box-shadow:
        inset 2px 2px 6px rgba(0,0,0,.5), inset -2px -2px 6px rgba(255,255,255,.04),
        0 18px 40px rgba(0,0,0,.6);
    position: relative;
}
/* brass plate title bar on the login card */
.login-card h1 {
    font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 22px; margin: 0 0 4px;
    text-align: center; color: #fef4df;
}
.login-card .lead { text-align: center; margin: 0 0 18px; }
.login-card button { width: 100%; margin-top: 16px; padding: 11px; font-size: 14px; }
.login-card label { margin: 14px 0 0; }
.login-card input[type=text], .login-card input[type=password] { max-width: none; }

/* ---------------------------------------------------------------- cookie notice */
#cookie-notice {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
    max-width: 720px; width: calc(100% - 32px);
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 12px 16px; z-index: 50;
    color: var(--ink); font-size: 13px;
    background: linear-gradient(145deg, #2a333d, #1a2028);
    border: 1px solid #0b0f14; border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 30px rgba(0,0,0,.6);
}
#cookie-notice p { margin: 0; flex: 1 1 340px; }
#cookie-notice .cn-actions { display: flex; gap: 8px; }
#cookie-notice button { padding: 7px 14px; }

@media (max-width: 620px) {
    .header-content { flex-direction: column; align-items: flex-start; }
    .site-main { padding: 16px 3% 32px; }
    .content-container { padding: 16px; }
}
