:root {
    --bg-body: #F4F7F6;
    --bg-card: #FFFFFF;
    --bg-surface: #F8FAFC;
    --primary: #00A676;
    --primary-light: #43C59E;
    --teal: #00897B;
    --teal-dark: #00695C;
    --gold: #F59E0B;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-hint: #64748B;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    
    --gradient-top: #FFFFFF;
    --card-border-color: rgba(0, 0, 0, 0.05);
    --primary-shadow-color: rgba(0, 166, 118, 0.25);
    --primary-rgba-40: rgba(0, 166, 118, 0.15);
    --primary-rgba-15: rgba(0, 166, 118, 0.08);
    --teal-rgba-40: rgba(0, 137, 123, 0.15);
    --teal-rgba-15: rgba(0, 137, 123, 0.08);
    
    --base-size: 16px;
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: var(--bg-body);
    font-family: var(--font-family);
}

input, textarea, select {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    cursor: text;
}

select {
    cursor: pointer;
}

/* SVG Icon Utility Class */
.svg-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.svg-icon.sm { width: 14px; height: 14px; }
.svg-icon.lg { width: 24px; height: 24px; }
.svg-icon.xl { width: 32px; height: 32px; }

/* Typography & Form Elements */
h1, h2, h3 { font-weight: 700; color: var(--text-primary); }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.text-small { font-size: 12px; color: var(--text-hint); }

.form-group {
    margin-bottom: 16px;
    width: 100%;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--teal);
    font-weight: 600;
    font-size: 13.5px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 14.5px;
    color: var(--text-primary);
    background-color: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.form-input:focus {
    border-color: var(--teal);
}

select.form-input {
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 15px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 6px 16px var(--primary-shadow-color);
}

.btn-outline {
    background-color: var(--bg-surface);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
}

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

/* Gold Button */
.btn-gold {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #FFFFFF;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #D97706, #B45309);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 10px;
    width: auto;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
}
.network-status-pill {
    pointer-events: none !important;
    cursor: default !important;
    user-select: none;
}
.status-pill.primary {
    background: rgba(0, 166, 118, 0.15);
    color: var(--primary-light, #43C59E);
    border: 1px solid rgba(0, 166, 118, 0.3);
}
.status-pill.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success, #10B981);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-pill.amber {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold, #F59E0B);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-pill.red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error, #EF4444);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    pointer-events: auto;
}

.modal.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 380px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--text-primary);
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUpToast 0.25s ease-out;
    pointer-events: auto;
}

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

