/* ============================================================
   ONE PERCENT BULL - MASTER STYLESHEET
   "The BULL Don't Quit!"
   Black background / red accents
   ============================================================ */


/* ------------------------------------------------------------
   1. COLOR VARIABLES
   Change a color here and it updates the entire site.
   ------------------------------------------------------------ */

:root {
    --black:        #000000;
    --panel:        #121212;
    --panel-light:  #1c1c1c;
    --border:       #2e2e2e;

    --red:          #e01b24;
    --red-bright:   #ff2d38;
    --red-dark:     #a30f16;
    --red-glow:     rgba(224, 27, 36, 0.35);

    --text:         #e8e8e8;
    --text-dim:     #9a9a9a;
    --text-faint:   #6a6a6a;
    --white:        #ffffff;

    --green:        #24c26a;
    --amber:        #f0a020;

    --radius:       6px;
    --shadow:       0 4px 18px rgba(0, 0, 0, 0.7);
}


/* ------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--black);
    color: var(--text);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--red-bright);
}


/* ------------------------------------------------------------
   3. HEADINGS
   ------------------------------------------------------------ */

h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.25;
    color: var(--white);
}

h1 {
    font-size: 30px;
    text-transform: uppercase;
    color: var(--red);
}

h2 {
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.page-title {
    border-bottom: 3px solid var(--red);
    padding-bottom: 12px;
    margin-bottom: 26px;
}


/* ------------------------------------------------------------
   4. LAYOUT WRAPPER
   ------------------------------------------------------------ */

.wrap {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 18px;
}

main {
    flex: 1 0 auto;
    padding: 32px 0 60px;
}


/* ------------------------------------------------------------
   5. SITE HEADER
   ------------------------------------------------------------ */

.site-header {
    background: linear-gradient(180deg, #0d0d0d 0%, #000000 100%);
    border-bottom: 3px solid var(--red);
    padding: 16px 0;
    position: relative;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    height: 58px;
    width: auto;
}

/* Text fallback if no logo.png is uploaded yet */
.brand-text .name {
    font-size: 25px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--red);
    line-height: 1.1;
    text-shadow: 0 0 14px var(--red-glow);
}

.brand-text .tag {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-dim);
    margin-top: 2px;
}

.header-user {
    text-align: right;
    font-size: 13px;
    color: var(--text-dim);
}

.header-user .who {
    color: var(--white);
    font-weight: 700;
    display: block;
    font-size: 14px;
}

.header-user .role-badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-top: 4px;
}


/* ------------------------------------------------------------
   6. NAVIGATION BAR
   ------------------------------------------------------------ */

.site-nav {
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav a {
    display: block;
    padding: 14px 18px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
    transition: all 0.15s ease;
}

.site-nav a:hover {
    color: var(--white);
    background: var(--panel-light);
}

.site-nav a.active {
    color: var(--red);
    border-bottom-color: var(--red);
    background: var(--panel-light);
}

.site-nav .spacer {
    margin-left: auto;
}

.site-nav .logout-link a {
    color: var(--text-faint);
}

.site-nav .logout-link a:hover {
    color: var(--red-bright);
}


/* ------------------------------------------------------------
   7. FOOTER
   ------------------------------------------------------------ */

.site-footer {
    flex-shrink: 0;
    background: #070707;
    border-top: 3px solid var(--red);
    padding: 26px 0;
    text-align: center;
}

.site-footer .foot-tag {
    color: var(--red);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.site-footer .copy {
    color: var(--text-faint);
    font-size: 12px;
}


/* ------------------------------------------------------------
   8. MOBILE ADJUSTMENTS
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    h1 { font-size: 23px; }
    h2 { font-size: 19px; }

    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .header-user {
        text-align: center;
    }

    .brand {
        flex-direction: column;
        gap: 8px;
    }

    .brand img {
        height: 48px;
    }

    .site-nav ul {
        justify-content: center;
    }

    .site-nav a {
        padding: 12px 13px;
        font-size: 11.5px;
        letter-spacing: 0.5px;
    }

    .site-nav .spacer {
        margin-left: 0;
    }

    main {
        padding: 22px 0 40px;
    }
}

/* ============================================================
   PART 2A - CARDS, STAT TILES, PROGRESS BARS
   ============================================================ */


/* ------------------------------------------------------------
   9. CARDS (the boxes that hold content)
   ------------------------------------------------------------ */

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}

.card-red {
    border-left: 4px solid var(--red);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.card-head h2,
.card-head h3 {
    margin-bottom: 0;
}


/* ------------------------------------------------------------
   10. GRID (auto-arranging columns)
   ------------------------------------------------------------ */

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }


/* ------------------------------------------------------------
   11. STAT TILES (big numbers on the dashboard)
   ------------------------------------------------------------ */

.stat {
    background: var(--panel);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: var(--radius);
    padding: 18px 16px;
    text-align: center;
}

.stat .stat-label {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.stat .stat-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
}

.stat .stat-unit {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
    margin-left: 3px;
}

.stat .stat-sub {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 6px;
}

.stat.is-red   .stat-value { color: var(--red); }
.stat.is-green .stat-value { color: var(--green); }
.stat.is-amber .stat-value { color: var(--amber); }


/* ------------------------------------------------------------
   12. PROGRESS BARS
   ------------------------------------------------------------ */

.bar-row {
    margin-bottom: 16px;
}

.bar-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12.5px;
    margin-bottom: 6px;
}

.bar-top .bar-name {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.bar-top .bar-nums {
    color: var(--white);
    font-weight: 700;
}

.bar-top .bar-nums .goal {
    color: var(--text-faint);
    font-weight: 400;
}

.bar-track {
    height: 12px;
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red-dark), var(--red-bright));
    border-radius: 20px;
    transition: width 0.4s ease;
}

.bar-fill.ok {
    background: linear-gradient(90deg, #147a42, var(--green));
}

.bar-fill.warn {
    background: linear-gradient(90deg, #9a6410, var(--amber));
}

.bar-fill.over {
    background: linear-gradient(90deg, #6b0a0f, var(--red-bright));
}


/* ------------------------------------------------------------
   13. MOBILE - collapse grids
   ------------------------------------------------------------ */

@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }

    .stat .stat-value { font-size: 27px; }
    .card { padding: 17px; }
}

/* ============================================================
   PART 2B - BUTTONS AND FORMS
   ============================================================ */


/* ------------------------------------------------------------
   14. BUTTONS
   ------------------------------------------------------------ */

.btn {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 13px 26px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.08s ease;
}

.btn:hover {
    background: var(--red-bright);
    color: var(--white);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled,
.btn.disabled {
    background: #3a3a3a;
    color: var(--text-faint);
    cursor: not-allowed;
}

/* Outlined version - for secondary actions */
.btn-outline {
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
    padding: 11px 24px;
}

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}

/* Gray - for Cancel / Back */
.btn-gray {
    background: #333;
    color: var(--text);
}

.btn-gray:hover {
    background: #444;
    color: var(--white);
}

/* Danger - for Delete */
.btn-danger {
    background: transparent;
    border: 2px solid #8a1218;
    color: #ff6b73;
    padding: 11px 24px;
}

.btn-danger:hover {
    background: #8a1218;
    color: var(--white);
}

/* Sizes */
.btn-sm {
    padding: 8px 15px;
    font-size: 11.5px;
    letter-spacing: 0.8px;
}

.btn-lg {
    padding: 16px 34px;
    font-size: 15px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Row of buttons with spacing */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}


/* ------------------------------------------------------------
   15. FORMS
   ------------------------------------------------------------ */

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: var(--text-dim);
    margin-bottom: 7px;
}

.field label .req {
    color: var(--red);
    margin-left: 3px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="tel"],
select,
textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    padding: 12px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
}

input::placeholder,
textarea::placeholder {
    color: #5a5a5a;
}

textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}

select {
    cursor: pointer;
    appearance: none;
    background-image:
      url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e01b24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 38px;
}

/* Fix dark-on-dark date picker icon in Chrome */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Helper text under a field */
.field .hint {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 5px;
}

/* Two or three fields side by side */
.field-row {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.field-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.field-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.field-row.cols-4 { grid-template-columns: repeat(4, 1fr); }

.field-row .field { margin-bottom: 0; }


/* ------------------------------------------------------------
   16. CHECKBOXES AND RADIOS
   ------------------------------------------------------------ */

.check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
    cursor: pointer;
}

.check input[type="checkbox"],
.check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
    cursor: pointer;
    flex-shrink: 0;
}

.check span {
    font-size: 14px;
    color: var(--text);
}


/* ------------------------------------------------------------
   17. LOGIN PAGE (centered box)
   ------------------------------------------------------------ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-brand {
    text-align: center;
    margin-bottom: 26px;
}

.login-brand img {
    max-height: 95px;
    width: auto;
    margin: 0 auto 14px;
}

.login-brand .name {
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--red);
    text-shadow: 0 0 20px var(--red-glow);
    line-height: 1.1;
}

.login-brand .tag {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-top: 7px;
}

.login-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
}

.login-foot {
    text-align: center;
    margin-top: 22px;
    font-size: 11.5px;
    color: var(--text-faint);
    line-height: 1.7;
}


/* ------------------------------------------------------------
   18. MOBILE
   ------------------------------------------------------------ */

@media (max-width: 620px) {

    .field-row.cols-2,
    .field-row.cols-3,
    .field-row.cols-4 {
        grid-template-columns: 1fr;
    }

    .btn { width: 100%; }
    .btn-sm { width: auto; }
    .btn-row .btn { width: auto; flex: 1 1 auto; }

    .login-brand .name { font-size: 25px; }

    /* Stops iPhone zooming in when you tap a field */
    input, select, textarea { font-size: 16px; }
}

/* ============================================================
   PART 2C - TABLES AND ALERT MESSAGES
   ============================================================ */


/* ------------------------------------------------------------
   19. TABLES
   ------------------------------------------------------------ */

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table.data thead th {
    background: #0a0a0a;
    color: var(--red);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    text-align: left;
    padding: 11px 12px;
    border-bottom: 2px solid var(--red);
    white-space: nowrap;
}

table.data tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

table.data tbody tr:hover {
    background: var(--panel-light);
}

table.data tbody tr:last-child td {
    border-bottom: none;
}

table.data tfoot td {
    padding: 12px;
    background: #0a0a0a;
    border-top: 2px solid var(--red);
    font-weight: 800;
    color: var(--white);
}

/* Alignment helpers */
.num     { text-align: right; font-variant-numeric: tabular-nums; }
.center  { text-align: center; }
.nowrap  { white-space: nowrap; }
.dim     { color: var(--text-dim); }
.faint   { color: var(--text-faint); }
.strong  { font-weight: 800; color: var(--white); }
.red     { color: var(--red); }
.green   { color: var(--green); }

/* Column width helpers */
.w-tight { width: 1%; white-space: nowrap; }


/* ------------------------------------------------------------
   20. EMPTY STATE (when there is no data yet)
   ------------------------------------------------------------ */

.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-faint);
}

.empty .empty-big {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.empty .empty-sub {
    font-size: 13px;
    margin-bottom: 18px;
}


/* ------------------------------------------------------------
   21. ALERT MESSAGES
   ------------------------------------------------------------ */

.alert {
    border-radius: var(--radius);
    padding: 14px 17px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.55;
    border-left: 4px solid;
}

.alert strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 800;
}

.alert-error {
    background: rgba(224, 27, 36, 0.12);
    border-left-color: var(--red);
    color: #ffb3b8;
}

.alert-ok {
    background: rgba(36, 194, 106, 0.12);
    border-left-color: var(--green);
    color: #9ce6bd;
}

.alert-warn {
    background: rgba(240, 160, 32, 0.12);
    border-left-color: var(--amber);
    color: #ffd699;
}

.alert-info {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #666;
    color: var(--text-dim);
}


/* ------------------------------------------------------------
   22. MOBILE
   ------------------------------------------------------------ */

@media (max-width: 620px) {
    table.data { font-size: 13px; }
    table.data thead th,
    table.data tbody td { padding: 9px 8px; }
}

/* ============================================================
   PART 2D - TIPS, BADGES, FOOD SEARCH
   ============================================================ */


/* ------------------------------------------------------------
   23. CLIENT TIP BOXES  (your coaching notes)
   ------------------------------------------------------------ */

.tip {
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 17px 19px;
    margin-bottom: 15px;
}

.tip-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 9px;
}

.tip-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.35;
    margin: 0;
}

.tip-date {
    font-size: 11px;
    color: var(--text-faint);
    white-space: nowrap;
    padding-top: 3px;
}

.tip-body {
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.65;
}

.tip-body p { margin-bottom: 9px; }
.tip-body p:last-child { margin-bottom: 0; }

.tip-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--text-faint);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* IMPORTANT priority - glowing red */
.tip.is-important {
    border-left-color: var(--red-bright);
    border-left-width: 5px;
    background: linear-gradient(90deg,
                rgba(224, 27, 36, 0.10) 0%,
                var(--panel) 55%);
    box-shadow: 0 0 22px rgba(224, 27, 36, 0.18);
}

/* PINNED - stuck to top of dashboard */
.tip.is-pinned {
    border-left-color: var(--amber);
}

.tip.is-pinned .tip-title::before {
    content: "\2605";           /* star */
    color: var(--amber);
    margin-right: 7px;
}

/* UNREAD - subtle red glow dot */
.tip.is-unread .tip-title::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--red-bright);
    border-radius: 50%;
    margin-left: 9px;
    vertical-align: middle;
    box-shadow: 0 0 8px var(--red-bright);
}


/* ------------------------------------------------------------
   24. BADGES / PILLS
   ------------------------------------------------------------ */

.badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.7;
}

.badge-red    { background: var(--red);    color: var(--white); }
.badge-green  { background: var(--green);  color: #04240f; }
.badge-amber  { background: var(--amber);  color: #2b1a00; }
.badge-gray   { background: #333;          color: var(--text-dim); }

.badge-outline {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
}

/* Meal tags in the food log */
.meal-tag {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 3px;
    background: #262626;
    color: var(--text-dim);
    border-left: 3px solid var(--red);
}


/* ------------------------------------------------------------
   25. FOOD SEARCH RESULTS
   ------------------------------------------------------------ */

.search-bar {
    display: flex;
    gap: 9px;
    margin-bottom: 18px;
}

.search-bar input { flex: 1; }

.results {
    max-height: 430px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #0a0a0a;
}

.results:empty { display: none; }

.result-item {
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.12s ease;
}

.result-item:last-child { border-bottom: none; }

.result-item:hover,
.result-item.sel {
    background: var(--panel-light);
    border-left: 3px solid var(--red);
    padding-left: 12px;
}

.result-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3px;
}

.result-brand {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-bottom: 5px;
}

.result-macros {
    font-size: 12px;
    color: var(--text-dim);
}

.result-macros .cal {
    color: var(--red);
    font-weight: 800;
}

.result-macros span { margin-right: 13px; }

/* Loading spinner */
.loading {
    text-align: center;
    padding: 26px;
    color: var(--text-faint);
    font-size: 13px;
}

.spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-bottom: 9px;
}

@keyframes spin { to { transform: rotate(360deg); } }


/* ------------------------------------------------------------
   26. WATER BUTTONS
   ------------------------------------------------------------ */

.water-row {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 13px;
}

.water-btn {
    flex: 1;
    min-width: 72px;
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 13px 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.water-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--panel-light);
}


/* ------------------------------------------------------------
   27. UTILITIES
   ------------------------------------------------------------ */

.mt-0  { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-0  { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.hidden      { display: none; }

.divider {
    height: 1px;
    background: var(--border);
    margin: 22px 0;
    border: none;
}

.small { font-size: 12.5px; }


/* ------------------------------------------------------------
   28. MOBILE
   ------------------------------------------------------------ */

@media (max-width: 620px) {
    .search-bar { flex-direction: column; }
    .search-bar .btn { width: 100%; }
    .results { max-height: 340px; }
    .water-btn { min-width: 60px; font-size: 12px; }
}