/* ============================================================
   SURE VERIFY ELECTRICITY — Premium Dark Fintech Theme
   Fully Responsive — Works on Any Screen
   ============================================================ */

/* ===========================
   BODY RESET — Override dashboard defaults
   =========================== */
body {
    padding-top: 66px;
    padding-bottom: 0;
    overflow-x: hidden;
}

.header {
    z-index: 500 !important;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 18px;
}

.hero-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.hero-icon i {
    font-size: 26px;
    color: #fff;
}

.hero-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hero-tags span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}


/* ===========================
   HERO CARD — Electricity Theme
   =========================== */
.elec-hero {
    background: linear-gradient(135deg, #065f46 0%, #047857 40%, #10B981 100%);
    box-shadow: 0 10px 25px rgba(6, 95, 70, 0.3);
}

.elec-hero::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: -80px;
    right: -40px;
    background: var(--accent-subtle);
    pointer-events: none;
}

.elec-hero::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    left: -50px;
    bottom: -50px;
    background: var(--accent-subtle);
    pointer-events: none;
}

.hero-left {
    flex-shrink: 0;
    z-index: 2;
}

.hero-right {
    flex: 1;
    z-index: 2;
    min-width: 0;
}

.hero-right h1 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-right p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    line-height: 1.4;
}


/* ===========================
   PAGE LAYOUT
   =========================== */
.page {
    background: var(--bg-page, #07140E);
    min-height: 100vh;
    padding-bottom: 40px;
}

.top-navigation {
    position: relative;
    z-index: 100;
    background: var(--bg-page, #07140E);
    padding: 12px 14px 8px;
}


/* ===========================
   SECTION CARDS
   =========================== */
.elec-section {
    background: var(--bg-primary-card, #102A1D);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 16px;
    padding: 16px 14px;
    margin: 10px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.4s ease both;
    overflow: hidden;
}

#paymentSection {
    display: block;
}

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


/* ===========================
   SECTION HEADER
   =========================== */
.elec-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
}

.elec-section-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.elec-section-number {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent, #16C75A);
    opacity: 0.8;
    font-family: monospace;
}

.elec-section-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.elec-section-badge {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-muted, #6B8577);
    background: var(--accent-subtle);
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}


/* ===========================
   FORM ELEMENTS
   =========================== */
.elec-form-group {
    margin-bottom: 14px;
}

.elec-form-group:last-child {
    margin-bottom: 0;
}

.elec-form-row {
    display: flex;
    gap: 10px;
}

.elec-half {
    flex: 1;
    min-width: 0;
}

.elec-label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted, #6B8577);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.elec-input,
.elec-select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary-card, #163726);
    border: 2px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #fff);
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.elec-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B8577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.elec-input::placeholder {
    color: var(--text-muted, #6B8577);
    font-size: 13px;
}

.elec-select option {
    background: var(--bg-secondary-card, #163726);
    color: var(--text-primary, #fff);
}

.elec-input:focus,
.elec-select:focus {
    border-color: var(--accent, #16C75A);
    box-shadow: 0 0 0 3px rgba(22, 199, 90, 0.1);
}

.elec-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}


/* ===========================
   METER INPUT — Footer (Counter + Status)
   =========================== */
.elec-meter-wrapper {
    position: relative;
}

.elec-meter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding: 0 2px;
}

.elec-meter-counter {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted, #6B8577);
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 0.3px;
}

.elec-meter-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 0;
    transition: color 0.25s ease;
}

/* Waiting state */
.elec-meter-status.status-waiting {
    color: var(--text-muted, #6B8577);
}

/* Verifying state */
.elec-meter-status.status-verifying {
    color: #22C55E;
}

/* Valid state */
.elec-meter-status.status-valid {
    color: #22C55E;
}

/* Invalid state */
.elec-meter-status.status-invalid {
    color: #EF4444;
}


/* ===========================
   MINI CSS SPINNER (inline)
   =========================== */
.elec-mini-spinner {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(34, 197, 94, 0.25);
    border-top-color: #22C55E;
    border-radius: 50%;
    animation: elec-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes elec-spin {
    to { transform: rotate(360deg); }
}


/* ===========================
   AMOUNT INPUT
   =========================== */
.elec-amount-wrapper {
    position: relative;
}

.elec-currency {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent, #16C75A);
}

.elec-amount-input {
    padding-left: 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}


/* ===========================
   BUTTONS
   =========================== */
.elec-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
    margin-top: 4px;
}

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

.elec-btn:disabled {
    background: var(--bg-secondary-card) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none;
}

.elec-btn-primary {
    background: linear-gradient(135deg, #065f46, #10B981);
    color: #fff;
    box-shadow: 0 6px 20px rgba(6, 95, 70, 0.35);
}

.elec-btn-primary:hover:not(:disabled) {
    box-shadow: 0 10px 28px rgba(6, 95, 70, 0.45);
    transform: translateY(-1px);
}

.elec-btn-pay {
    background: linear-gradient(135deg, #16C75A, #12964A);
    color: #fff;
    box-shadow: 0 6px 20px rgba(22, 199, 90, 0.3);
}

.elec-btn-pay:hover:not(:disabled) {
    box-shadow: 0 10px 28px rgba(22, 199, 90, 0.4);
    transform: translateY(-1px);
}

.btn-text,
.btn-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ===========================
   VERIFICATION RESULT
   =========================== */
.elec-verification-result {
    margin-top: 16px;
    padding: 14px;
    background: rgba(22, 199, 90, 0.06);
    border: 1px solid rgba(22, 199, 90, 0.15);
    border-radius: 12px;
    animation: slideIn 0.3s ease both;
}

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

.elec-result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.elec-result-header i {
    color: var(--accent, #16C75A);
    font-size: 18px;
}

.elec-result-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent, #16C75A);
}

.elec-customer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.elec-customer-name {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-secondary-card, #163726);
    border-radius: 10px;
    border: 1px solid var(--border, rgba(255,255,255,0.08));
}

.elec-customer-name i {
    color: var(--accent, #16C75A);
    font-size: 16px;
    flex-shrink: 0;
}

.elec-customer-name span {
    font-size: 14px;
    color: var(--accent, #16C75A);
    font-weight: 600;
}

.elec-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-secondary-card, #163726);
    border-radius: 10px;
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    gap: 8px;
}

.elec-detail-label {
    font-size: 11px;
    color: var(--text-muted, #6B8577);
    font-weight: 500;
    white-space: nowrap;
}

.elec-detail-value {
    font-size: 12px;
    color: var(--text-primary, #fff);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.elec-detail-value.highlight {
    color: var(--accent, #16C75A);
    font-size: 13px;
}


/* ===========================
   INFO BOX
   =========================== */
.elec-info-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    margin-bottom: 14px;
}

.elec-info-box i {
    color: #3B82F6;
    font-size: 13px;
    margin-top: 1px;
    flex-shrink: 0;
}

.elec-info-box div {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.elec-info-box b {
    color: var(--text-primary, #fff);
    font-weight: 600;
}


/* ===========================
   RESULT MESSAGE
   =========================== */
.elec-result-message {
    margin: 12px 12px 0;
    padding: 14px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeInUp 0.3s ease both;
}

.elec-result-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.elec-result-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.elec-result-message.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.elec-result-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.elec-result-message.success .elec-result-icon { color: var(--accent, #16C75A); }
.elec-result-message.error .elec-result-icon { color: #EF4444; }
.elec-result-message.info .elec-result-icon { color: #3B82F6; }

.elec-result-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.elec-result-text strong {
    color: var(--text-primary, #fff);
    font-weight: 600;
}


/* ===========================
   SECURITY BADGES
   =========================== */
.elec-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 12px;
}

.elec-badges div {
    background: var(--bg-primary-card, #102A1D);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    padding: 12px 6px;
    border-radius: 12px;
    font-size: 9px;
    color: var(--text-muted, #6B8577);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    line-height: 1.3;
}

.elec-badges div i {
    color: var(--accent, #16C75A);
    font-size: 14px;
}


/* ===========================
   RESPONSIVE — Small Mobile (< 360px)
   =========================== */
@media (max-width: 360px) {
    .hero-card {
        padding: 14px;
        gap: 12px;
        border-radius: 16px;
    }

    .hero-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 14px;
    }

    .hero-icon i {
        font-size: 20px;
    }

    .hero-right h1 {
        font-size: 15px;
    }

    .hero-right p {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .hero-tags span {
        padding: 3px 8px;
        font-size: 8px;
    }

    .elec-section {
        margin: 8px 10px;
        padding: 14px 12px;
        border-radius: 14px;
    }

    .elec-section-header h2 {
        font-size: 13px;
    }

    .elec-input,
    .elec-select {
        padding: 10px 12px;
        font-size: 13px;
    }

    .elec-btn {
        padding: 12px;
        font-size: 13px;
    }

    .elec-badges {
        margin: 12px 10px;
        gap: 6px;
    }

    .elec-badges div {
        padding: 10px 4px;
        font-size: 8px;
    }

    .elec-badges div i {
        font-size: 12px;
    }
}


/* ===========================
   RESPONSIVE — Mobile (361px - 480px)
   =========================== */
@media (min-width: 361px) and (max-width: 480px) {
    .elec-section {
        margin: 10px 12px;
        padding: 16px 14px;
    }

    .elec-form-row {
        flex-direction: column;
        gap: 0;
    }
}


/* ===========================
   RESPONSIVE — Tablet (481px - 768px)
   =========================== */
@media (min-width: 481px) and (max-width: 768px) {
    .elec-section {
        margin: 12px 20px;
        padding: 18px 18px;
    }

    .hero-right h1 {
        font-size: 19px;
    }

    .hero-right p {
        font-size: 12px;
    }
}


/* ===========================
   RESPONSIVE — Desktop (769px+)
   =========================== */
@media (min-width: 769px) {
    body {
        padding-top: 68px;
    }

    .elec-section {
        margin: 14px auto;
        max-width: 560px;
        padding: 22px 26px;
        border-radius: 20px;
    }

    .elec-form-row {
        flex-direction: row;
    }

    .hero-right h1 {
        font-size: 21px;
    }

    .hero-right p {
        font-size: 13px;
    }

    .elec-btn {
        padding: 16px;
        font-size: 15px;
    }

    .elec-badges {
        max-width: 560px;
        margin: 20px auto;
        gap: 12px;
    }

    .elec-badges div {
        padding: 14px 8px;
        font-size: 10px;
    }

    .elec-result-message {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ================= LIGHT MODE OVERRIDES ================= */
[data-theme="light"] .elec-hero {
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.2);
}

[data-theme="light"] .elec-hero-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .elec-section {
    background: var(--bg-primary-card);
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .elec-section-badge {
    background: var(--bg-secondary-card);
}

[data-theme="light"] .elec-card {
    background: var(--bg-primary-card);
    border-color: var(--border);
}

[data-theme="light"] .elec-input {
    background: var(--bg-input);
    border-color: var(--input-border);
    color: var(--text-primary);
}

[data-theme="light"] .elec-input:focus {
    border-color: var(--accent);
    background: var(--bg-input);
}

[data-theme="light"] .elec-input::placeholder {
    color: var(--input-placeholder);
}

[data-theme="light"] .elec-select {
    background: var(--bg-input);
    border-color: var(--input-border);
    color: var(--text-primary);
}

[data-theme="light"] .elec-option-card {
    background: var(--bg-primary-card);
    border-color: var(--border);
}

[data-theme="light"] .elec-option-card.active {
    background: var(--bg-active);
    border-color: var(--accent);
}

[data-theme="light"] .elec-option-icon {
    background: var(--accent-dim);
}

[data-theme="light"] .elec-btn:disabled {
    background: var(--bg-secondary-card) !important;
    color: var(--text-muted) !important;
}

[data-theme="light"] .elec-info-box {
    background: var(--bg-secondary-card);
    border-color: var(--border);
}

[data-theme="light"] .elec-summary {
    background: var(--bg-primary-card);
    border-color: var(--border);
}

[data-theme="light"] .elec-summary-row {
    border-bottom-color: var(--border);
}

[data-theme="light"] .elec-result-box {
    background: var(--bg-primary-card);
    border-color: var(--border);
}

[data-theme="light"] .elec-badges div {
    background: var(--bg-primary-card);
    border-color: var(--border);
}

[data-theme="light"] .elec-loading-overlay {
    background: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .elec-privacy {
    background: var(--badge-warning-bg);
    border-color: var(--gold);
}

[data-theme="light"] .elec-privacy div {
    color: var(--text-secondary);
}

[data-theme="light"] .elec-consent {
    background: var(--bg-primary-card);
}

[data-theme="light"] .elec-consent:has(input:checked) {
    background: var(--bg-active);
}
