/* ════════════════════════════════════════════════════════════════════
   CIERICORP Portal — additional styles for member area, auth, pricing.
   Extends the shared dark theme defined in /css/style.css.
   ════════════════════════════════════════════════════════════════════ */

/* ───── Forms / inputs ───── */
.auth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 44px 38px;
    backdrop-filter: blur(20px);
}

.auth-card h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.auth-card form { margin-top: 24px; }

.auth-card label,
.account-form label {
    display: block;
    margin-bottom: 16px;
    font-size: .9rem;
    color: var(--text-dim, #b3b3b3);
    font-weight: 500;
}

.auth-card input,
.auth-card select,
.account-form input,
.account-form select,
.account-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .15s, background .15s;
}

.auth-card input:focus,
.auth-card select:focus,
.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
    outline: none;
    border-color: #4fc3f7;
    background: rgba(0, 0, 0, 0.45);
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 600px) {
    .row-2, .row-3 { grid-template-columns: 1fr; }
}

.btn-primary.block {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 24px !important;
}

.checkbox input { width: auto !important; margin: 0 !important; }

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: .9rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(38, 166, 91, 0.12);
    border-color: rgba(38, 166, 91, 0.3);
    color: #6fdc9b;
}

.alert-error {
    background: rgba(244, 67, 54, 0.12);
    border-color: rgba(244, 67, 54, 0.3);
    color: #ff8e84;
}

.auth-links {
    margin-top: 24px;
    text-align: center;
    font-size: .9rem;
    color: var(--text-dim, #b3b3b3);
}

.auth-links a { color: #4fc3f7; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-links span { margin: 0 6px; opacity: .5; }

.muted { color: var(--text-dim, #b3b3b3); }
.small { font-size: .85rem; }

/* ───── Nav additions ───── */
.btn-nav {
    background: linear-gradient(90deg, #4fc3f7, #ab47bc);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.lang-switch a { font-size: .85rem; opacity: .7; padding: 0 4px; }
.lang-switch a.active { opacity: 1; font-weight: 600; }

/* ───── Hero compact ───── */
.hero.compact { padding-top: 80px; padding-bottom: 40px; }
.hero-content.centered { text-align: center; margin: 0 auto; max-width: 720px; }

/* ───── Pricing / plans ───── */
.product-block { margin-bottom: 64px; }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.plan-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 26px;
    transition: transform .2s, border-color .2s;
}

.plan-card:hover { transform: translateY(-4px); border-color: rgba(79, 195, 247, 0.5); }

.plan-card.featured {
    border-color: rgba(171, 71, 188, 0.6);
    background: linear-gradient(145deg, rgba(79, 195, 247, 0.08), rgba(171, 71, 188, 0.08));
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 18px;
    background: linear-gradient(90deg, #4fc3f7, #ab47bc);
    color: #fff;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.plan-card h3 { margin-bottom: 12px; font-size: 1.1rem; }

.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 16px; }
.plan-price .amount { font-size: 2.2rem; font-weight: 700; color: #fff; }
.plan-price .currency { font-size: .85rem; color: var(--text-dim, #b3b3b3); text-transform: uppercase; }
.plan-price .unit { font-size: .9rem; color: var(--text-dim, #b3b3b3); }

/* ───── Portal layout ───── */
.portal { padding: 40px 0 80px; min-height: calc(100vh - 80px); }
.portal .container { display: grid; grid-template-columns: 240px 1fr; gap: 36px; }
.portal-main.wide, .portal-main:only-child { grid-column: 1 / -1; }

@media (max-width: 900px) {
    .portal .container { grid-template-columns: 1fr; }
}

.portal-side { position: sticky; top: 90px; align-self: flex-start; }

.user-card {
    display: flex; align-items: center; gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 18px;
}

.user-card .avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #4fc3f7, #ab47bc);
    color: #fff; font-weight: 700; font-size: 1.1rem;
}

.user-card strong { display: block; font-size: .95rem; }

.portal-nav { display: flex; flex-direction: column; }
.portal-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--text-dim, #b3b3b3);
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: .92rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.portal-nav a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.portal-nav a.active {
    background: linear-gradient(90deg, rgba(79, 195, 247, 0.15), rgba(171, 71, 188, 0.15));
    color: #fff; font-weight: 600;
}
.portal-nav a.admin-link { color: #ffb74d; }

.portal-main h1 { font-size: 1.9rem; margin-bottom: 8px; }
.portal-main h2 { font-size: 1.2rem; margin-bottom: 14px; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
}

.empty {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
}

/* ───── Tables ───── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: .92rem;
}

.data-table th, .data-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-dim, #b3b3b3);
    font-weight: 600;
}

.data-table tr:hover td { background: rgba(255, 255, 255, 0.025); }

.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.status-active, .status-paid { background: rgba(38, 166, 91, 0.18); color: #6fdc9b; }
.status-trialing, .status-open, .status-draft { background: rgba(79, 195, 247, 0.18); color: #79d4ff; }
.status-pastdue, .status-unpaid, .status-uncollectible { background: rgba(255, 152, 0, 0.18); color: #ffc266; }
.status-canceled, .status-incomplete, .status-incompleteexpired, .status-paused, .status-void { background: rgba(244, 67, 54, 0.18); color: #ff8e84; }

code.small {
    font-size: .78rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ───── Buttons (small) ───── */
.btn-xs {
    font-size: .75rem;
    padding: 4px 10px;
    border-radius: 6px;
}

/* ───── Support ticket thread ───── */
.thread .msg {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
}
.thread .msg-staff {
    border-left: 3px solid #4fc3f7;
    background: rgba(79, 195, 247, 0.06);
}
.thread .msg-customer {
    border-left: 3px solid #ab47bc;
}
.thread .msg-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}
.thread .msg-body {
    white-space: pre-wrap;
    line-height: 1.55;
    color: var(--text);
}

/* Ticket statuses */
.status-answered { background: rgba(171, 71, 188, 0.18); color: #d599e1; }
.status-closed { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); }
.status-pending { background: rgba(255, 152, 0, 0.18); color: #ffc266; }

/* ───── Dashboard stats / cards ───── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 28px 0 8px;
}
.stat-card {
    padding: 22px 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 14px;
    transition: border-color .2s ease, transform .2s ease;
}
.stat-card:hover {
    border-color: rgba(62, 224, 213, 0.3);
    transform: translateY(-2px);
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--text);
}
.stat-number.text-gradient,
.text-gradient {
    background: var(--grad-brand, linear-gradient(135deg,#3ee0d5 0%,#3b82f6 60%,#6366f1 100%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--text-dim, #b3b3b3);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Empty state */
.empty {
    padding: 36px 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
    border: 1px dashed var(--border, rgba(255,255,255,0.08));
    border-radius: 14px;
    text-align: center;
    margin-top: 12px;
}
.empty p { color: var(--text-dim); margin: 0 0 16px; }
.empty .btn-primary { display: inline-flex; }

/* Cards grid (subscriptions list) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.cards-grid .card {
    padding: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color .2s ease, transform .2s ease;
}
.cards-grid .card:hover {
    border-color: rgba(62, 224, 213, 0.3);
    transform: translateY(-2px);
}
.cards-grid .card h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
    font-weight: 600;
    letter-spacing: -0.005em;
}
.cards-grid .card .muted { font-size: 0.88rem; }
.cards-grid .card .small { font-size: 0.82rem; margin-top: 10px; }

/* Subscription status pill */
.status {
    display: inline-flex; align-items: center;
    margin-top: 12px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.status-active, .status-trialing {
    background: rgba(62, 224, 213, 0.12);
    color: #3ee0d5;
    border: 1px solid rgba(62, 224, 213, 0.3);
}
.status-pastdue, .status-past_due, .status-unpaid, .status-paused {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.status-canceled, .status-incomplete, .status-incomplete_expired {
    background: rgba(244, 63, 94, 0.1);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.25);
}

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.data-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    font-weight: 600;
    background: rgba(255,255,255,0.02);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table td { font-size: 0.92rem; }
.data-table a { color: var(--cyan); }

/* Tighter h2 in portal */
.portal-main h1 {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: -0.015em;
}
.portal-main h2 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin: 36px 0 4px;
}
.portal-main > .muted { font-size: 0.95rem; color: var(--text-dim); margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   CC UI primitives — modal, toast, country picker, flags, danger btn.
   ════════════════════════════════════════════════════════════════════ */

/* ── Flags (img tag rendered by cc-ui.js) ── */
.cc-flag {
    display: inline-block;
    width: 20px; height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 1px 2px rgba(0,0,0,0.4);
    vertical-align: middle;
    background: rgba(255,255,255,0.04);
}
.cc-flag-md { width: 28px; height: 20px; border-radius: 3px; }
.cc-flag-lg { width: 40px; height: 28px; border-radius: 4px; }
[data-cc-flag] { display: inline-flex; align-items: center; }
[data-cc-flag] .cc-flag { margin: 0; }

/* ── Country picker ── */
.cc-country-picker {
    position: relative;
    width: 100%;
}
.cc-country-button {
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    color: var(--text, #e7e9f0);
    font: inherit;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.cc-country-button:hover { border-color: rgba(62,224,213,0.35); background: rgba(255,255,255,0.06); }
.cc-country-button[aria-expanded="true"] {
    border-color: rgba(62,224,213,0.5);
    box-shadow: 0 0 0 3px rgba(62,224,213,0.12);
}
.cc-country-flag { display: inline-flex; min-width: 20px; }
.cc-country-flag .cc-flag { width: 22px; height: 16px; }
.cc-country-name { flex: 1; color: var(--text-dim, #b3b3b3); }
.cc-country-button.has-value .cc-country-name { color: var(--text); }
.cc-country-caret { color: var(--text-dim); transition: transform .15s ease; flex-shrink: 0; }
.cc-country-button[aria-expanded="true"] .cc-country-caret { transform: rotate(180deg); }

.cc-country-pop {
    position: absolute;
    top: calc(100% + 6px); left: 0; right: 0;
    background: rgba(15, 18, 28, 0.97);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
    z-index: 9000;
    overflow: hidden;
}
.cc-country-search {
    padding: 10px 10px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cc-country-search input {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--text);
    font: inherit; font-size: 0.92rem;
    outline: none;
}
.cc-country-search input:focus { border-color: rgba(62,224,213,0.4); }
.cc-country-list {
    list-style: none;
    margin: 0; padding: 4px;
    max-height: 280px;
    overflow-y: auto;
}
.cc-country-list::-webkit-scrollbar { width: 8px; }
.cc-country-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.cc-country-option {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
    color: var(--text);
    font-size: 0.92rem;
    transition: background .12s ease;
}
.cc-country-option:hover { background: rgba(62,224,213,0.10); }
.cc-country-option .cc-flag { width: 22px; height: 16px; flex-shrink: 0; }
.cc-country-option > span:nth-of-type(1) { flex: 1; }
.cc-country-code {
    color: var(--text-dim); font-size: 0.78rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: 0.04em;
}

/* ── Modal ── */
.cc-modal-root {
    position: fixed; inset: 0;
    display: none;
    align-items: center; justify-content: center;
    z-index: 9999;
    padding: 24px;
}
.cc-modal-root.open { display: flex; animation: cc-fade-in .18s ease; }
.cc-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(6, 9, 18, 0.74);
    backdrop-filter: blur(8px);
}
.cc-modal {
    position: relative;
    width: 100%; max-width: 460px;
    background: linear-gradient(180deg, rgba(20, 26, 38, 0.98), rgba(15, 18, 28, 0.98));
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(62,224,213,0.04);
    overflow: hidden;
    animation: cc-pop-in .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes cc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cc-pop-in { from { transform: translateY(8px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

.cc-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 8px;
}
.cc-modal-title { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.005em; color: var(--text); }
.cc-modal-close {
    background: transparent; border: 0; color: var(--text-dim);
    font-size: 1.6rem; line-height: 1;
    width: 32px; height: 32px; border-radius: 8px;
    cursor: pointer; transition: background .12s ease, color .12s ease;
}
.cc-modal-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.cc-modal-body { padding: 4px 24px 8px; }
.cc-modal-message { color: var(--text-dim); font-size: 0.96rem; line-height: 1.55; margin: 0; }
.cc-modal-foot {
    display: flex; gap: 10px; justify-content: flex-end;
    padding: 16px 24px 22px;
}
.cc-modal-foot .btn-primary,
.cc-modal-foot .btn-outline,
.cc-modal-foot .btn-danger { padding: 10px 18px; font-size: 0.92rem; }

body.cc-modal-open { overflow: hidden; }

/* Danger button (red) */
.btn-danger {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: 0; border-radius: 10px;
    font: inherit; font-weight: 600; font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.25);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-danger:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35); }

/* ── Toast ── */
.cc-toast-host {
    position: fixed;
    top: 24px; right: 24px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 10000;
    pointer-events: none;
    max-width: 360px;
}
.cc-toast {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(20, 26, 38, 0.98), rgba(15, 18, 28, 0.98));
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    color: var(--text);
    font-size: 0.92rem;
    pointer-events: auto;
    transform: translateX(20px);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}
.cc-toast.show { transform: none; opacity: 1; }
.cc-toast-msg { flex: 1; }
.cc-toast-x {
    background: transparent; border: 0; color: var(--text-dim);
    cursor: pointer; font-size: 1.2rem; line-height: 1;
    padding: 0 4px;
}
.cc-toast-icon {
    display: inline-flex; width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
}
.cc-toast-success .cc-toast-icon { background: #3ee0d5; box-shadow: 0 0 12px rgba(62,224,213,0.6); }
.cc-toast-error .cc-toast-icon { background: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,0.6); }
.cc-toast-info .cc-toast-icon { background: #3b82f6; box-shadow: 0 0 12px rgba(59,130,246,0.6); }
.cc-toast-warn .cc-toast-icon { background: #fbbf24; box-shadow: 0 0 12px rgba(251,191,36,0.6); }

/* ════════════════════════════════════════════════════════════════════
   CC Forms — fieldset, fields, labels, helpers.
   ════════════════════════════════════════════════════════════════════ */
.page-head { margin-bottom: 28px; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -0.018em; }
.page-head .muted { margin: 0; font-size: 0.95rem; color: var(--text-dim); }

.cc-form { display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.cc-fieldset {
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008));
    border-radius: 14px;
    padding: 22px 24px 24px;
    display: flex; flex-direction: column; gap: 16px;
    margin: 0;
}
.cc-fieldset legend {
    padding: 0 8px;
    margin-left: -8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--cyan, #3ee0d5);
}

.cc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cc-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim, #b3b3b3);
    letter-spacing: 0.005em;
}
.cc-field input,
.cc-field select,
.cc-field textarea,
.cc-form input[type="text"],
.cc-form input[type="email"],
.cc-form input[type="tel"],
.cc-form input[type="number"],
.cc-form input[type="search"],
.cc-form input[type="password"],
.cc-form select,
.cc-form textarea {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    outline: none;
}
.cc-field input:focus,
.cc-field select:focus,
.cc-field textarea:focus,
.cc-form input:focus,
.cc-form select:focus,
.cc-form textarea:focus {
    border-color: rgba(62,224,213,0.5);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(62,224,213,0.12);
}
.cc-field input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.cc-help {
    font-size: 0.78rem;
    color: var(--text-dim);
    opacity: 0.75;
}

.cc-form-foot {
    display: flex; gap: 12px; align-items: center;
    margin-top: 8px;
}

/* Improved alerts */
.alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.92rem;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.alert-success {
    background: rgba(62, 224, 213, 0.08);
    border-color: rgba(62, 224, 213, 0.25);
    color: #b8f5ee;
}
.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.30);
    color: #fda5a5;
}
.alert-info {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.30);
    color: #c0d7ff;
}
.alert-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    flex-shrink: 0;
}

/* Row helpers (consistent grid gaps) */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 720px) {
    .row-2, .row-3 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════
   Subscription rows + table wrapper + action links.
   ════════════════════════════════════════════════════════════════════ */
.sub-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.sub-row {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    padding: 18px 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 14px;
    transition: border-color .2s ease, transform .15s ease;
}
.sub-row:hover { border-color: rgba(62,224,213,0.3); transform: translateY(-1px); }
.sub-row-main { flex: 1; min-width: 220px; }
.sub-row-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sub-row-title h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.sub-row-plan { color: var(--text-dim); font-size: 0.88rem; }
.sub-row-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.sub-row-meta strong { color: var(--text); }
.sub-row-aside { display: flex; align-items: center; gap: 16px; }
.sub-row-price { font-weight: 700; font-size: 1.05rem; color: var(--text); letter-spacing: -0.01em; }

/* Data table wrapper for mobile scroll */
.data-table-wrap { width: 100%; overflow-x: auto; border-radius: 12px; }
.data-table th.num, .data-table td.num { text-align: right; }

/* Inline action links */
.row-inline { display: inline-flex; align-items: center; gap: 14px; justify-content: flex-end; }
.link-action {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--cyan, #3ee0d5);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: color .12s ease;
}
.link-action:hover { color: #fff; }
.link-action svg { opacity: 0.85; }

/* Smaller btn variants */
.btn-outline.small,
.btn-primary.small { padding: 7px 14px; font-size: 0.84rem; }

/* Support thread */
.thread { margin-top: 24px; }
.msg {
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.025);
}
.msg-staff {
    background: linear-gradient(180deg, rgba(62,224,213,0.06), rgba(62,224,213,0.02));
    border-color: rgba(62,224,213,0.2);
}
.msg-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; flex-wrap: wrap;
    margin-bottom: 10px;
}
.msg-head strong { font-size: 0.92rem; font-weight: 600; }
.msg-body { color: var(--text); font-size: 0.94rem; line-height: 1.55; white-space: pre-wrap; }
