﻿:root {
    --bg-1: #f4f1ea;
    --bg-2: #edf6f2;
    --surface: #ffffff;
    --surface-soft: #f8faf8;
    --text: #1f2a2a;
    --text-muted: #5c6d6a;
    --line: #d6dfdd;
    --line-strong: #b8c8c4;
    --brand: #0f766e;
    --brand-strong: #115e59;
    --brand-soft: #d9f3ef;
    --danger: #b42318;
    --danger-soft: #ffe8e6;
    --success: #0f766e;
    --success-soft: #e6f8f2;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 8px 20px rgba(17, 31, 31, 0.06);
    --shadow-lg: 0 20px 48px rgba(15, 33, 32, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    color: var(--text);
    font-family: "Plus Jakarta Sans", "Sora", "Segoe UI", sans-serif;
    background:
        radial-gradient(1200px 520px at 5% -10%, #e7f8f2 0%, transparent 58%),
        radial-gradient(980px 420px at 100% 0%, #fcefd8 0%, transparent 52%),
        linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

a {
    color: var(--brand-strong);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-shell {
    min-height: 100vh;
}

.main-content {
    width: min(1120px, 94%);
    margin: 0 auto;
    padding: 20px 0 56px;
}

.topbar {
    background: linear-gradient(120deg, #103834, #1f5651);
    color: #fff;
    padding: 16px 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.topbar a {
    color: #fff;
}

.topbar__brand a {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-pill {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.84rem;
}

.card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px;
    margin-bottom: 14px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

h1,
h2 {
    margin: 0 0 8px;
    letter-spacing: 0.1px;
}

h1 {
    font-size: clamp(1.25rem, 1.8vw, 1.75rem);
}

h2 {
    font-size: clamp(1.06rem, 1.6vw, 1.3rem);
}

.muted {
    color: var(--text-muted);
    margin: 0;
}

.stats-pill {
    border-radius: 999px;
    border: 1px solid #b8ddd6;
    background: var(--brand-soft);
    color: #164943;
    padding: 8px 13px;
}

.stack-form {
    display: grid;
    gap: 12px;
}

label {
    font-size: 0.92rem;
    font-weight: 620;
    display: inline-block;
    margin-bottom: 5px;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #6bbaad;
    box-shadow: 0 0 0 3px rgba(18, 126, 112, 0.15);
}

.check-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-wrap input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.grid-2 {
    display: grid;
    gap: 12px;
}

.btn {
    border: 0;
    border-radius: 12px;
    padding: 11px 14px;
    cursor: pointer;
    font-weight: 650;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(120deg, var(--brand), var(--brand-strong));
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22);
}

.btn-primary:hover {
    text-decoration: none;
    filter: brightness(1.03);
}

.btn-outline {
    border: 1px solid #98b8b0;
    background: #fff;
    color: #214a46;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.alert {
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.alert.success {
    border: 1px solid #b7e8d9;
    background: var(--success-soft);
    color: #17584f;
}

.alert.error {
    border: 1px solid #f4c0bb;
    background: var(--danger-soft);
    color: #7e1f17;
}

.auth-wrap {
    max-width: 470px;
    margin: 42px auto;
}

.auth-card {
    box-shadow: var(--shadow-lg);
}

.table-scroll {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid #e4ecea;
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: #3b4e4b;
    font-weight: 700;
    font-size: 0.92rem;
}

.inline-link {
    font-size: 0.88rem;
}

.status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-badge.active {
    background: #ddf5ec;
    color: #18674e;
}

.status-badge.inactive {
    background: #eceff1;
    color: #54636a;
}

.qr-thumb,
.qr-large {
    border: 1px solid #d6e2df;
    background: #fff;
    border-radius: 12px;
}

.qr-thumb {
    width: 92px;
    height: 92px;
    display: block;
    margin-bottom: 6px;
}

.qr-large {
    width: 220px;
    height: 220px;
    margin-bottom: 10px;
}

.review-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.powered-by {
    text-align: center;
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.powered-by a {
    color: var(--brand-strong);
    font-weight: 600;
}

.brand-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-image {
    width: 86px;
    height: 86px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #d9e5e2;
}

.field-block {
    margin-bottom: 12px;
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip input {
    display: none;
}

.chip span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #bfd2cd;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.87rem;
    color: #334b48;
    background: #f8fcfb;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip input:checked + span {
    background: #dff2ed;
    border-color: #72baab;
    color: #115e59;
}

.generated-actions {
    margin-top: 12px;
}

.key-value-grid {
    display: grid;
    gap: 8px;
}

.key-value-grid div {
    display: grid;
    gap: 2px;
}

.key-value-grid strong {
    font-size: 0.9rem;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%) translateY(20px);
    min-width: 220px;
    max-width: min(90vw, 480px);
    background: #173835;
    color: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.24s ease;
    z-index: 999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.copy-pop {
    animation: pop 0.25s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@media (max-width: 739px) {
    .main-content {
        width: min(1120px, 95%);
        padding-bottom: 34px;
    }

    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar {
        padding-left: 4%;
        padding-right: 4%;
    }

    .action-row {
        width: 100%;
    }

    .action-row .btn,
    .action-row a.btn,
    .action-row form {
        width: 100%;
    }

    .action-row form .btn {
        width: 100%;
    }

    .card {
        padding: 15px;
    }
}

@media (min-width: 740px) {
    .main-content {
        padding-top: 24px;
    }

    .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

:root{
    --bg:#09090f;
    --card:#11111a;
    --border:rgba(255,255,255,.08);
    --text:#fff;
    --muted:#9ca3af;

    --primary:#6d5dfc;
    --secondary:#00d4ff;
}

body{
    margin:0;
    color:var(--text);
    background:var(--bg);
    font-family:Inter,sans-serif;
    overflow-x:hidden;
    position:relative;
}

/* Animated Background */
body::before,
body::after{
    content:"";
    position:fixed;
    width:500px;
    height:500px;
    border-radius:50%;
    filter:blur(120px);
    opacity:.35;
    z-index:-1;
    animation:floatGlow 12s ease-in-out infinite;
}

body::before{
    background:#6d5dfc;
    top:-150px;
    left:-100px;
}

body::after{
    background:#00d4ff;
    right:-150px;
    bottom:-150px;
    animation-delay:4s;
}

@keyframes floatGlow{
    0%,100%{
        transform:translate(0,0) scale(1);
    }
    50%{
        transform:translate(50px,-40px) scale(1.15);
    }
}

/* Container */
.review-wrap{
    max-width:850px;
    margin:auto;
    padding:40px 20px;
}

/* Glass Cards */
.card{
    background:rgba(255,255,255,.04);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:28px;
    padding:28px;
    margin-bottom:24px;

    box-shadow:
    0 10px 40px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.06);

    transition:.35s ease;
}

.card:hover{
    transform:translateY(-6px);
    box-shadow:
    0 20px 60px rgba(109,93,252,.25),
    0 10px 30px rgba(0,212,255,.15);
}

/* Business Card */
.brand-card{
    display:flex;
    align-items:center;
    gap:20px;
}

.brand-image{
    width:90px;
    height:90px;
    border-radius:24px;
    object-fit:cover;
    border:2px solid rgba(255,255,255,.1);
}

h1{
    margin:0;
    font-size:2rem;
    font-weight:700;
}

h2{
    margin-top:0;
}

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

/* Inputs */
textarea{
    width:100%;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    border-radius:18px;
    padding:16px;
    resize:vertical;
    transition:.3s;
}

textarea:focus{
    outline:none;
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(109,93,252,.2);
}

/* Rating Chips */
.chip-grid{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.chip input{
    display:none;
}

.chip span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 20px;
    border-radius:999px;
    cursor:pointer;

    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);

    transition:.3s;
}

.chip:hover span{
    transform:translateY(-3px);
}

.chip input:checked + span{
    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    border:none;
    color:white;
    box-shadow:
    0 10px 25px rgba(109,93,252,.35);
}

/* Button */
.btn-primary{
    width:100%;
    border:none;
    color:white;
    cursor:pointer;
    font-weight:600;
    font-size:16px;

    padding:16px;

    border-radius:18px;

    background:linear-gradient(
        135deg,
        #6d5dfc,
        #00d4ff
    );

    transition:.35s;
}

.btn-primary:hover{
    transform:translateY(-3px) scale(1.02);
    box-shadow:
    0 15px 40px rgba(109,93,252,.45);
}

.btn-primary:active{
    transform:scale(.98);
}

/* Generated Card Animation */
#generatedCard{
    animation:slideUp .5s ease;
}

@keyframes slideUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Footer */
.powered-by{
    text-align:center;
    margin:40px 0;
    color:#9ca3af;
}

.powered-by a{
    color:#00d4ff;
    text-decoration:none;
}
