/* Sui Gas Bill Checker - shared styles (SNGPL / SSGC) */
.suibill-container {
    max-width: 520px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Branded header (replaces the old tab strip) */
.suibill-header {
    padding: 18px 24px;
    color: #fff;
}

.suibill-header h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.suibill-header p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: 0.9;
    color: #fff;
}

.suibill-sngpl .suibill-header { background: #2563eb; }
.suibill-ssgc  .suibill-header { background: #16a34a; }

.suibill-body { padding: 24px; }

/* Area info */
.suibill-area {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.suibill-area strong { font-weight: 700; }

.suibill-sngpl .suibill-area { background: rgba(37, 99, 235, 0.08); color: #1e40af; }
.suibill-ssgc  .suibill-area { background: rgba(22, 163, 74, 0.08); color: #166534; }

.suibill-cities { font-size: 13px; opacity: 0.85; }

/* Form */
.suibill-group { margin-bottom: 16px; }

.suibill-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1f2937;
    font-size: 15px;
}

.suibill-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(209, 213, 219, 0.6);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.25s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #1f2937;
    letter-spacing: 0.5px;
}

.suibill-input:focus { outline: none; background: rgba(255, 255, 255, 0.95); }
.suibill-input::placeholder { color: #9ca3af; letter-spacing: normal; }

.suibill-sngpl .suibill-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.suibill-ssgc .suibill-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

.suibill-error {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
}

.suibill-error.show { display: block; }

.suibill-input.invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}

/* Save on this device */
.suibill-save { margin-bottom: 18px; }

.suibill-check {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    user-select: none;
    gap: 10px;
}

.suibill-check input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.suibill-mark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    position: relative;
}

.suibill-sngpl .suibill-check input:checked ~ .suibill-mark { background: #2563eb; border-color: #2563eb; }
.suibill-ssgc  .suibill-check input:checked ~ .suibill-mark { background: #16a34a; border-color: #16a34a; }

.suibill-check input:checked ~ .suibill-mark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.suibill-check input:focus-visible ~ .suibill-mark {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

/* Buttons */
.suibill-btn {
    display: inline-block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #fff;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    font-family: inherit;
}

.suibill-sngpl .suibill-btn { background: #2563eb; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
.suibill-sngpl .suibill-btn:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); color: #fff; }

.suibill-ssgc .suibill-btn { background: #16a34a; box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3); }
.suibill-ssgc .suibill-btn:hover { background: #15803d; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4); color: #fff; }

.suibill-btn:active { transform: translateY(0); }

/* Summary */
.suibill-summary { padding: 28px; }

.suibill-summary-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 20px 0;
}

.suibill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.suibill-box {
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px;
    padding: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.suibill-box-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}

.suibill-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 6px;
}

.suibill-value { font-size: 20px; font-weight: 800; color: #111827; }
.suibill-number { font-size: 24px; letter-spacing: 0.5px; word-break: break-all; }

.suibill-mini {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.suibill-mini:hover { background: #eff6ff; border-color: #bfdbfe; }

.suibill-copy {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    font-family: inherit;
}

.suibill-copy:hover { background: #f3f4f6; border-color: #d1d5db; }
.suibill-copy.done { background: #16a34a; border-color: #16a34a; color: #fff; }

.suibill-action { max-width: 320px; margin: 0 auto; display: block; }

/* Captcha notice */
.suibill-note {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    font-size: 13px;
    line-height: 1.55;
    color: #78350f;
}

/* Trouble / recovery panel */
.suibill-trouble {
    margin: 18px auto 0;
    max-width: 380px;
    text-align: center;
}

.suibill-trouble-toggle {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px;
    font-family: inherit;
}

.suibill-trouble-toggle:hover { color: #374151; }

.suibill-trouble-body {
    display: none;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(243, 244, 246, 0.9);
    border: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    text-align: left;
}

.suibill-trouble-body.show { display: block; }
.suibill-trouble-body ol { margin: 8px 0 0; padding-left: 20px; }
.suibill-trouble-body li { margin-bottom: 6px; }
.suibill-trouble-body code {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 12px;
}

.suibill-retry {
    display: inline-block;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    font-family: inherit;
}

.suibill-retry:hover { background: #f9fafb; }

.suibill-empty { text-align: center; padding: 40px 24px; color: #4b5563; }

/* Responsive */
@media (max-width: 520px) {
    .suibill-container { margin: 10px; border-radius: 16px; }
    .suibill-body, .suibill-summary { padding: 18px; }
    .suibill-header { padding: 16px 18px; }
    .suibill-header h2 { font-size: 17px; }
    .suibill-grid { grid-template-columns: 1fr; gap: 12px; }
    .suibill-summary-title { font-size: 18px; }
    .suibill-number { font-size: 20px; }
}
