.tq-homepage-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1a1a1a;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tq-saas-body {
    --tq-bg: #09090b;
    --tq-surface: #141416;
    --tq-surface-raised: #1c1c1f;
    --tq-border: #2b2b30;
    --tq-text: #f4f4f5;
    --tq-muted: #a1a1aa;
    --tq-accent: #f5b942;
    --tq-accent-bright: #ffd477;
    --tq-success: #4ade80;
    --tq-danger: #fb7185;
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 75% -20%, rgba(245, 185, 66, 0.11), transparent 42%),
        var(--tq-bg);
    color: var(--tq-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

.tq-saas-body *,
.tq-admin-wrap * {
    box-sizing: border-box;
}

.tq-global-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px max(24px, calc((100vw - 1240px) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 9, 11, 0.82);
    backdrop-filter: blur(18px);
}

.tq-global-header .tq-logo a {
    color: var(--tq-text);
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.tq-global-header .tq-logo a::before {
    content: "✦";
    margin-right: 9px;
    color: var(--tq-accent);
}

.tq-global-header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #55555b;
}

.tq-global-header nav a {
    padding: 7px 10px;
    border-radius: 8px;
    color: #c4c4ca;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tq-global-header nav a:hover,
.tq-global-header nav a:focus-visible {
    transform: translateY(-1px);
    background: #1c1c1f;
    color: var(--tq-accent-bright);
}

.tq-main-content {
    width: min(1240px, calc(100% - 40px));
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    padding: 42px 0 80px;
}

.tq-app {
    color: var(--tq-text, #f4f4f5);
}

.tq-dashboard-hero {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 190px;
    margin-bottom: 22px;
    padding: clamp(24px, 5vw, 40px);
    border: 1px solid rgba(245, 185, 66, 0.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 8%, rgba(245, 185, 66, 0.18), transparent 30%),
        linear-gradient(120deg, #171719, #101012 68%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    animation: tq-rise-in 520ms cubic-bezier(.2, .7, .2, 1) both;
}

.tq-dashboard-hero::after {
    position: absolute;
    right: 3%;
    bottom: -125px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(245, 185, 66, 0.13);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(245, 185, 66, 0.025), 0 0 0 48px rgba(245, 185, 66, 0.02);
    content: "";
    pointer-events: none;
}

.tq-dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.tq-dashboard-hero h1 {
    margin: 8px 0 6px;
    color: #fff;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 820;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.tq-dashboard-hero p {
    margin: 0;
    color: var(--tq-muted, #a1a1aa);
    font-size: 14px;
}

.tq-eyebrow {
    color: var(--tq-accent, #f5b942);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.tq-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tq-button:hover {
    transform: translateY(-2px);
}

.tq-button:active {
    transform: translateY(0) scale(.98);
}

.tq-button-primary {
    background: var(--tq-accent, #f5b942);
    color: #17130a !important;
    box-shadow: 0 8px 22px rgba(245, 185, 66, 0.15);
}

.tq-button-primary:hover {
    background: var(--tq-accent-bright, #ffd477);
    box-shadow: 0 10px 28px rgba(245, 185, 66, 0.24);
}

.tq-button-quiet {
    border-color: var(--tq-border, #2b2b30);
    background: rgba(255, 255, 255, 0.035);
    color: var(--tq-text, #f4f4f5) !important;
}

.tq-button-quiet:hover {
    border-color: rgba(245, 185, 66, 0.45);
    background: rgba(245, 185, 66, 0.08);
}

.tq-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.tq-metric-card {
    position: relative;
    min-height: 154px;
    padding: 20px;
    border: 1px solid var(--tq-border, #2b2b30);
    border-radius: 17px;
    background: linear-gradient(145deg, #171719, #121214);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.13);
    animation: tq-rise-in 560ms cubic-bezier(.2, .7, .2, 1) both;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.tq-metric-card:nth-child(2) { animation-delay: 55ms; }
.tq-metric-card:nth-child(3) { animation-delay: 110ms; }
.tq-metric-card:nth-child(4) { animation-delay: 165ms; }

.tq-metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 185, 66, 0.35);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.tq-metric-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(245, 185, 66, 0.19);
    border-radius: 10px;
    background: rgba(245, 185, 66, 0.1);
    color: var(--tq-accent, #f5b942);
    font-size: 16px;
}

.tq-metric-icon.tq-icon-amber { color: #fbbf24; }
.tq-metric-icon.tq-icon-green {
    border-color: rgba(74, 222, 128, 0.18);
    background: rgba(74, 222, 128, 0.09);
    color: var(--tq-success, #4ade80);
}

.tq-metric-card p {
    margin: 15px 0 2px;
    color: #c4c4ca;
    font-size: 12px;
    font-weight: 650;
}

.tq-metric-card > strong {
    display: inline-block;
    color: #fff;
    font-size: 28px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.25;
}

.tq-metric-card small {
    display: block;
    margin-top: 2px;
    color: #77777f;
    font-size: 11px;
}

.tq-dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    align-items: start;
    gap: 16px;
}

.tq-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--tq-border, #2b2b30);
    border-radius: 18px;
    background: rgba(20, 20, 22, 0.94);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.14);
    animation: tq-rise-in 580ms cubic-bezier(.2, .7, .2, 1) both;
}

.tq-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.tq-panel-heading h2 {
    margin: 5px 0 0;
    color: #f4f4f5;
    font-size: 17px;
    font-weight: 760;
    letter-spacing: -0.025em;
}

.tq-panel-caption {
    color: #77777f;
    font-size: 11px;
}

.tq-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid rgba(74, 222, 128, 0.18);
    border-radius: 99px;
    background: rgba(74, 222, 128, 0.07);
    color: #86efac;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.tq-live-indicator > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .55);
    animation: tq-live-pulse 1.8s infinite;
}

.tq-context-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid rgba(245, 185, 66, .2);
    border-radius: 99px;
    background: rgba(245, 185, 66, .07);
    color: #fcd77f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.tq-notice {
    margin-bottom: 16px;
    padding: 13px 16px;
    border: 1px solid rgba(245, 185, 66, 0.25);
    border-radius: 12px;
    background: rgba(245, 185, 66, 0.08);
    color: #e8d6ae;
    font-size: 13px;
}

.tq-notice strong { margin-right: 6px; color: #ffdc91; }

.tq-data-table,
.tq-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    color: #dedee2;
    font-size: 12px;
    text-align: left;
}

.tq-table-scroll { overflow-x: auto; }

.tq-data-table th,
.tq-table th {
    padding: 11px 12px;
    border-bottom: 1px solid var(--tq-border, #2b2b30);
    color: #77777f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tq-data-table td,
.tq-table td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    vertical-align: middle;
}

.tq-data-table tbody tr,
.tq-table tbody tr {
    transition: background-color 160ms ease;
}

.tq-data-table tbody tr:hover,
.tq-table tbody tr:hover { background: rgba(255, 255, 255, .025); }

.tq-data-table td strong { color: #f4f4f5; }

.tq-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid #34343a;
    border-radius: 99px;
    background: #222226;
    color: #d4d4d8;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.tq-status-pending { border-color: rgba(245, 185, 66, .24); background: rgba(245, 185, 66, .09); color: #fcd77f; }
.tq-status-confirmed,
.tq-status-completed,
.tq-status-approved,
.tq-status-active { border-color: rgba(74, 222, 128, .22); background: rgba(74, 222, 128, .08); color: #86efac; }
.tq-status-cancelled,
.tq-status-rejected,
.tq-status-inactive,
.tq-status-no_show { border-color: rgba(251, 113, 133, .22); background: rgba(251, 113, 133, .08); color: #fda4af; }
.tq-status-waiting,
.tq-status-called,
.tq-status-serving { border-color: rgba(96, 165, 250, .22); background: rgba(96, 165, 250, .08); color: #93c5fd; }

.tq-booking-list { display: grid; }

.tq-booking-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.tq-booking-row:last-child { border-bottom: 0; }
.tq-booking-row strong { display: block; color: #ededf0; font-size: 12px; }
.tq-booking-row small { display: block; margin-top: 4px; color: #77777f; font-size: 10px; }

.tq-empty-state {
    display: flex;
    min-height: 185px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px;
    border: 1px dashed #34343a;
    border-radius: 14px;
    background: rgba(255, 255, 255, .015);
    text-align: center;
}

.tq-empty-state > span { margin-bottom: 10px; color: var(--tq-accent, #f5b942); font-size: 24px; }
.tq-empty-state strong { color: #e4e4e7; font-size: 13px; }
.tq-empty-state p { max-width: 340px; margin: 5px 0 13px; color: #85858d; font-size: 11px; }

.tq-dashboard-wrap {
    color: var(--tq-text, #f4f4f5);
}

.tq-dashboard-wrap > h2 {
    color: #f4f4f5;
    font-size: 16px;
}

.tq-dashboard-wrap .tq-card {
    border-color: var(--tq-border, #2b2b30);
    background: var(--tq-surface, #141416);
    box-shadow: none;
    color: var(--tq-text, #f4f4f5);
    transition: transform 180ms ease, border-color 180ms ease;
}

.tq-dashboard-wrap .tq-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 185, 66, .3);
}

.tq-dashboard-wrap .button {
    min-height: 30px;
    border-color: #3a3a40;
    border-radius: 8px;
    background: #242428;
    color: #e4e4e7;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.tq-dashboard-wrap .button:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 185, 66, .45);
    background: #303034;
    color: #ffdc91;
}

.tq-saas-body .tq-homepage-container { color: #f4f4f5; }

.tq-hero {
    background:
        radial-gradient(circle at 86% 4%, rgba(245, 185, 66, .2), transparent 30%),
        linear-gradient(125deg, #171719, #0d0d0f);
    color: #ffffff;
    padding: 60px 30px;
    border: 1px solid rgba(245, 185, 66, .17);
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 20px 65px rgba(0, 0, 0, .24);
}

.tq-hero h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.tq-hero p {
    font-size: 1.1rem;
    color: #b1b1b8;
    max-width: 600px;
    margin: 0 auto 30px;
}

.tq-btn-primary {
    background: #f5b942;
    color: #17130a !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-right: 10px;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.tq-btn-primary:hover {
    transform: translateY(-2px);
    background: #ffd477;
    box-shadow: 0 10px 28px rgba(245, 185, 66, .2);
}

.tq-btn-secondary {
    background: #27272a;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 180ms ease, background-color 180ms ease;
}

.tq-btn-secondary:hover {
    transform: translateY(-2px);
    background: #37373b;
}

.tq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tq-card {
    background: #161618;
    border: 1px solid #2b2b30;
    border-radius: 14px;
    padding: 20px;
    color: #f4f4f5;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.tq-saas-body .tq-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 185, 66, .38);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.tq-btn-small {
    background: #252528;
    color: #f5c45d !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 10px;
    transition: transform 180ms ease, background-color 180ms ease;
}

.tq-btn-small:hover {
    transform: translateY(-1px);
    background: #343438;
}

.tq-saas-body input,
.tq-saas-body select,
.tq-saas-body textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #36363c;
    border-radius: 9px;
    outline: none;
    background: #161618;
    color: #f4f4f5;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tq-saas-body input:focus,
.tq-saas-body select:focus,
.tq-saas-body textarea:focus {
    border-color: #e5aa3d;
    box-shadow: 0 0 0 3px rgba(245, 185, 66, .12);
}

.tq-saas-body label {
    display: block;
    margin: 14px 0 6px;
    color: #d4d4d8;
    font-size: 12px;
    font-weight: 650;
}

.tq-form,
.tq-saas-body #loginform {
    width: min(100%, 540px);
    margin: 24px auto;
    padding: 25px;
    border: 1px solid #2b2b30;
    border-radius: 16px;
    background: #141416;
}

.tq-saas-body a:focus-visible,
.tq-admin-wrap a:focus-visible,
.tq-saas-body button:focus-visible,
.tq-admin-wrap button:focus-visible {
    outline: 2px solid #f5b942;
    outline-offset: 3px;
}

@keyframes tq-rise-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tq-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); }
    70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@media (max-width: 900px) {
    .tq-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tq-dashboard-columns { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .tq-global-header { position: relative; align-items: flex-start; flex-direction: column; gap: 10px; padding: 13px 18px; }
    .tq-global-header nav { gap: 3px; }
    .tq-global-header nav a { padding: 7px; font-size: 11px; }
    .tq-main-content { width: min(100% - 24px, 1240px); padding-top: 22px; }
    .tq-dashboard-hero { align-items: flex-start; flex-direction: column; padding: 23px; }
    .tq-metric-grid { gap: 9px; }
    .tq-metric-card { min-height: 140px; padding: 14px; }
    .tq-metric-card > strong { font-size: 24px; }
    .tq-panel { padding: 16px; }
    .tq-panel-caption { display: none; }
    .tq-data-table { min-width: 540px; }
}

@media (prefers-reduced-motion: reduce) {
    .tq-saas-body *,
    .tq-admin-wrap * {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
