* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f4f6fa;
    --surface: #ffffff;
    --surface-2: #f7f8fc;
    --text: #1f2937;
    --text-2: #4b5563;
    --text-3: #6b7280;
    --border: #e5e7eb;
    --border-2: #d1d5db;
    --primary: #4f46e5;
    --primary-2: #4338ca;
    --primary-soft: #eef2ff;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.18);
    --transition: 0.15s ease;

    /* semantic z-index scale */
    --z-drawer: 1200;
    --z-modal-backdrop: 1300;
    --z-modal: 1310;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    background: #1b1b2b;
    color: #fff;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.header h1 {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.header .spacer {
    flex: 1;
}

.auth-ok {
    color: #86efac;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* ==========================================================================
   Layout / navigation
   ========================================================================== */

.layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    height: calc(100vh - 49px);
}

aside {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 14px 10px;
    overflow-y: auto;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-group {
    margin-bottom: 14px;
}

.nav-group-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 6px 14px 4px;
}

nav a {
    display: block;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}

nav a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

nav a.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

main {
    padding: 24px 28px;
    overflow-y: auto;
}

main h2.page {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text);
}

/* ==========================================================================
   Card
   ========================================================================== */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 18px;
    max-width: 1100px;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 14px;
    color: var(--text-2);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.count-pill {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.col {
    flex: 1;
    min-width: 260px;
}

.fg {
    margin-bottom: 14px;
}

.fg label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fg input,
.fg select,
.fg textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.fg input::placeholder {
    color: #9ca3af;
}

.fg input:hover,
.fg select:hover,
.fg textarea:hover {
    border-color: #9ca3af;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.fg textarea {
    font-family: ui-monospace, monospace;
    resize: vertical;
    min-height: 80px;
}

.fg input:disabled,
.fg select:disabled {
    background: var(--surface-2);
    color: var(--text-3);
    cursor: not-allowed;
}

.check {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 14px;
    color: var(--text-2);
    cursor: pointer;
    user-select: none;
}

.check input {
    accent-color: var(--primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover:not(:disabled) {
    background: var(--primary-2);
    box-shadow: var(--shadow-sm);
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-sm {
    padding: 5px 11px;
    font-size: 12px;
}

.btn-secondary {
    background: #6b7280;
}

.btn-secondary:hover:not(:disabled) {
    background: #4b5563;
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger:hover:not(:disabled) {
    background: var(--danger-soft);
}

.btn-link {
    border: none;
    background: none;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 6px;
}

.btn-link:hover {
    text-decoration: underline;
}

.inline {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.table-wrap table {
    border: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--surface);
}

thead {
    background: var(--surface-2);
}

th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tr.dlq td {
    background: #fff7ed;
}

tbody tr:hover td {
    background: #f8fafc;
}

tbody tr:last-child td {
    border-bottom: none;
}

.t-state {
    padding: 22px 12px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.caret-cell {
    width: 22px;
}

td .switch {
    vertical-align: middle;
}

.cell-sub {
    font-size: 12px;
    margin-top: 2px;
    color: var(--text-3);
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.badge-ok {
    background: #dcfce7;
    color: #166534;
}

.badge-warn {
    background: #fef3c7;
    color: #92400e;
}

.badge-err {
    background: #fee2e2;
    color: #991b1b;
}

.badge-off {
    background: #e5e7eb;
    color: #374151;
}

/* ==========================================================================
   Status / helpers
   ========================================================================== */

.status {
    margin-top: 12px;
    font-size: 13px;
    min-height: 1.3em;
    font-weight: 500;
}

.status.error {
    color: var(--danger);
}

.status.ok {
    color: var(--success);
}

.dim {
    color: var(--text-3);
}

.hint {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 4px;
}

hr.sep {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* ==========================================================================
   Toggle switch
   ========================================================================== */

.switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.switch input {
    display: none;
}

.switch-track {
    width: 40px;
    height: 22px;
    background: #d1d5db;
    border-radius: 11px;
    position: relative;
    transition: background var(--transition);
    flex: none;
}

.switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: left var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .switch-track {
    background: var(--success);
}

.switch input:checked + .switch-track .switch-thumb {
    left: 20px;
}

.switch-label {
    font-size: 13px;
    color: var(--text-2);
}

.switch-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Chips
   ========================================================================== */

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

.chip {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-2);
    background: var(--surface);
    font-size: 12px;
    cursor: pointer;
    color: var(--text-2);
    font-weight: 500;
    transition: all var(--transition);
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chip.on {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.chip-static {
    cursor: default;
}

.chip-static:hover {
    border-color: var(--border-2);
    color: var(--text-2);
}

/* ==========================================================================
   Expandable detail row
   ========================================================================== */

tr.expand-row > td {
    background: #f8fafc;
    padding: 18px;
    border-bottom: 2px solid #e0e7ff;
}

tr.clickable {
    cursor: pointer;
}

tr.clickable:hover td {
    background: #f1f5f9;
}

.caret {
    display: inline-block;
    width: 14px;
    color: var(--text-3);
    transition: transform var(--transition);
}

.caret.open {
    transform: rotate(90deg);
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.tab {
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-3);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-weight: 600;
    transition: color var(--transition), border-color var(--transition);
}

.tab:hover {
    color: var(--text-2);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ==========================================================================
   Detail sub-section
   ========================================================================== */

.subsection {
    margin-bottom: 20px;
}

.subsection > h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-3);
    margin: 0 0 10px;
    font-weight: 700;
}

/* ==========================================================================
   Toolbar / filters
   ========================================================================== */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.filter-bar .flt {
    padding: 7px 11px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-bar .flt:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search {
    padding: 7px 12px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    min-width: 240px;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.bar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seg {
    display: inline-flex;
    background: #e5e7eb;
    border-radius: var(--radius-sm);
    padding: 3px;
    position: relative;
}

.seg-btn {
    position: relative;
    z-index: 2;
    border: 1px solid transparent;
    background: transparent;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    transition: all var(--transition);
}

.seg-btn:hover {
    color: var(--text);
    border-color: var(--border-2);
}

.seg-btn.on {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.price-range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.price-range input {
    width: 86px;
    padding: 7px 10px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.price-range input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.price-range .dash {
    color: var(--text-3);
}

.chip-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    transition: border-color var(--transition), color var(--transition);
}

.chip-check:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chip-check input {
    margin: 0;
    accent-color: var(--primary);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 16px;
    z-index: 100;
    overflow-y: auto;
    backdrop-filter: blur(2px);
}

.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-lg);
    animation: modal-in 0.18s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-wide {
    max-width: 820px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-head h3 {
    font-size: 16px;
    color: var(--text);
    font-weight: 700;
}

.modal-x {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--text-3);
    cursor: pointer;
    padding: 0 4px;
    transition: color var(--transition);
}

.modal-x:hover {
    color: var(--text);
}

.modal-body {
    padding: 20px;
}

/* ==========================================================================
   Misc
   ========================================================================== */

.cell-sub {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

/* ==========================================================================
   SPA shell extras
   ========================================================================== */

.boot {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: var(--text-3);
    font-size: 14px;
}

.auth-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-card {
    width: 360px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 26px;
}

.auth-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px 24px;
}

.info-row { display: flex; flex-direction: column; gap: 2px; }

.info-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.info-value { font-size: 14px; color: var(--text); word-break: break-word; }

.badge-role { background: var(--primary-soft); color: var(--primary); }

/* catalog panel */
.product-tariff { display: inline-block; color: var(--primary); font-weight: 600; font-size: 12px; padding: 4px 10px; background: var(--primary-soft); border-radius: 999px; }
.order-discounts { margin-top: 15px; padding: 12px 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm); }
.order-discounts h4 { margin: 0 0 10px; color: #856404; font-size: 14px; font-weight: 700; }
.discount-item { margin: 5px 0; color: #856404; font-size: 13px; }
.discount-code { font-weight: 700; color: #d39e00; }
.discount-amount { color: var(--success); font-weight: 700; }
.result { white-space: pre-wrap; background: var(--surface-2); padding: 12px; border-radius: var(--radius-sm); }

/* order panel */
.product-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; background: var(--surface); margin-bottom: 15px; box-shadow: var(--shadow-sm); }
.product-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.product-description { color: var(--text-3); margin-bottom: 15px; line-height: 1.4; }
.product-price { font-size: 20px; font-weight: 700; color: var(--success); margin-bottom: 10px; }
.product-duration { color: var(--text-3); margin-bottom: 10px; }
.order-status { margin-bottom: 15px; padding: 10px 15px; border-radius: var(--radius-sm); font-weight: 700; text-align: center; }
.status-created { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.status-in_progress { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }
.status-done { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-failed, .status-fail, .status-external_fail, .status-expiry, .status-external_expiry { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.discount-actions { margin-left: 10px; }
.payment-service-info { background: var(--surface-2); padding: 15px; border-radius: var(--radius-sm); margin-bottom: 15px; }
.payment-url { margin-top: 15px; padding: 15px; background: #d1ecf1; border: 1px solid #bee5eb; border-radius: var(--radius-sm); }
.payment-url a { color: #0c5460; font-weight: 700; }

/* ==========================================================================
   GD test panel
   ========================================================================== */
.gd-layout { display: grid; grid-template-columns: 300px 1fr; grid-template-rows: 1fr 1fr; gap: 0; height: 78vh; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.gd-filters { grid-row: 1 / 3; background: var(--surface); border-right: 1px solid var(--border); padding: 16px; overflow-y: auto; }
.gd-filters h3 { font-size: 14px; margin-bottom: 12px; color: var(--text-2); }
.gd-filters select[multiple] { height: 90px; }
.gd-map { grid-row: 1; grid-column: 2; position: relative; min-height: 0; }
.gd-table { grid-row: 2; grid-column: 2; overflow: auto; background: var(--surface); border-top: 1px solid var(--border); }
.gd-table .status-bar { padding: 4px 12px; font-size: 12px; color: var(--text-3); background: var(--surface-2); border-top: 1px solid var(--border); display: flex; justify-content: space-between; position: sticky; bottom: 0; }
tr.gd-selected td { background: #d4e0ff !important; }

.map-dot { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.3); cursor: pointer; transform: translate(-50%, -50%); transition: transform 0.1s; }
.map-dot:hover { transform: translate(-50%, -50%) scale(1.15); }
.map-dot.single { background: #4361ee; width: 14px; height: 14px; }
.map-dot.cluster { background: #e74c3c; color: #fff; font-size: 12px; min-width: 28px; min-height: 28px; padding: 2px 6px; }
.map-dot.cluster.large { background: #c0392b; font-size: 11px; }

.slide-panel { position: absolute; top: 0; right: 0; width: 380px; height: 100%; background: var(--surface); box-shadow: -4px 0 16px rgba(0,0,0,0.15); z-index: 200; transform: translateX(100%); transition: transform 0.25s ease; display: flex; flex-direction: column; }
.slide-panel.open { transform: translateX(0); }
.sp-header { padding: 12px 16px; background: #1a1a2e; color: #fff; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.sp-header h4 { font-size: 14px; font-weight: 600; }
.sp-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; padding: 0 4px; }
.sp-body { flex: 1; overflow-y: auto; padding: 16px; font-size: 13px; }
.sp-body .sp-loading { text-align: center; padding: 40px; color: var(--text-3); }
.gd-detail .dt { margin-bottom: 10px; }
.gd-detail .dt-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; font-weight: 600; margin-bottom: 2px; }
.gd-detail .dt-value { font-size: 13px; color: var(--text); word-break: break-word; white-space: normal; }
.cluster-item { padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.15s; }
.cluster-item:hover { border-color: #4361ee; background: #f8faff; }
.cluster-item .ci-name { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.cluster-item .ci-meta { font-size: 11px; color: var(--text-3); }

/* invite panel */
.feedback { padding: 1rem; margin-top: 1rem; border-radius: var(--radius-sm); }
.feedback.error { background: #fbe9e7; color: #c62828; border: 1px solid #ffccbc; }
.feedback.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.status-active { color: #27ae60; font-weight: 700; }
.status-inactive { color: #e74c3c; font-weight: 700; }
.seq-container { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; margin-top: 1rem; }
.seq-h5 { margin: 0 0 8px; color: var(--text-3); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.tariff-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; margin-bottom: 0.5rem; cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center; }
.tariff-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--primary); }
.no-tariffs-prompt { display: flex; align-items: center; justify-content: center; min-height: 100px; color: #95a5a6; border: 2px dashed var(--border); border-radius: var(--radius-md); }
.sequence-list { display: flex; flex-direction: column; gap: 0.5rem; }
.sequence-item { display: flex; align-items: flex-start; background: var(--surface-2); padding: 0.75rem; border-radius: var(--radius-md); border: 1px solid var(--border); gap: 8px; }
.sequence-number { font-size: 1.2rem; font-weight: 600; color: var(--primary); width: 20px; text-align: center; }
.sequence-item-details { flex-grow: 1; display: flex; }
.duration-input { display: flex; align-items: center; gap: 0.5rem; }
.duration-input input { width: 70px; }
.time-range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.validation-error { color: var(--danger); font-size: 0.8rem; margin-top: 0.25rem; }
.remove-tag-btn { background: none; border: none; color: #95a5a6; font-size: 1.5rem; cursor: pointer; padding: 0 0.5rem; line-height: 1; }
.remove-tag-btn:hover { color: var(--danger); }
.link-input-group { display: flex; align-items: center; }
.link-input { flex-grow: 1; background: var(--surface-2); border-top-right-radius: 0; border-bottom-right-radius: 0; }
.copy-btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
