/* AU Phone Spam Checker — Styles */
.ausc-wrap {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 560px;
    margin: 0 auto;
    padding: 8px 0 24px;
    color: #1a1f2e;
}

/* ── Header ── */
.ausc-header { margin-bottom: 20px; }

.ausc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.ausc-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #f0a500;
    animation: ausc-pulse 2s ease-in-out infinite;
}

@keyframes ausc-pulse {
    0%,100% { opacity:1; } 50% { opacity:0.3; }
}

.ausc-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
    border: none !important;
}

.ausc-sub {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ── Login / register gate ── */
.ausc-login-gate .ausc-header {
    margin-bottom: 16px;
}

/* Tabs */
.ausc-auth-tabs {
    display: flex;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f8fafc;
}

.ausc-auth-tab {
    flex: 1;
    padding: 10px 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ausc-auth-tab:hover { background: #f1f5f9; color: #0f172a; }

.ausc-auth-tab--active {
    background: #0f172a;
    color: #ffffff;
}

/* Shared form card */
.ausc-login-form-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
}

.ausc-login-form-wrap #loginform {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.ausc-login-form-wrap #loginform p {
    margin: 0 0 14px;
}

.ausc-login-form-wrap #loginform label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    margin-bottom: 5px;
}

.ausc-login-form-wrap #loginform input[type="text"],
.ausc-login-form-wrap #loginform input[type="password"] {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    padding: 10px 12px;
    box-sizing: border-box;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ausc-login-form-wrap #loginform input[type="text"]:focus,
.ausc-login-form-wrap #loginform input[type="password"]:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.ausc-login-form-wrap #loginform input[type="submit"],
.ausc-login-form-wrap #loginform .button-primary {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s;
}

.ausc-login-form-wrap #loginform input[type="submit"]:hover,
.ausc-login-form-wrap #loginform .button-primary:hover {
    background: #1e293b;
}

.ausc-login-form-wrap #loginform .forgetmenot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.ausc-login-form-wrap #nav,
.ausc-login-form-wrap #backtoblog {
    display: none;
}

/* Registration form fields */
.ausc-reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ausc-reg-field {
    margin-bottom: 14px;
}

.ausc-reg-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    margin-bottom: 5px;
}

.ausc-reg-hint {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #94a3b8;
}

.ausc-reg-field input[type="text"],
.ausc-reg-field input[type="email"],
.ausc-reg-field input[type="password"] {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    padding: 10px 12px;
    box-sizing: border-box;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ausc-reg-field input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.ausc-reg-msg--err {
    font-size: 13px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.ausc-btn--full {
    width: 100%;
    padding: 11px 0;
    font-size: 15px;
}

@media (max-width: 480px) {
    .ausc-reg-row { grid-template-columns: 1fr; }
}

/* ── Input card ── */
.ausc-input-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 12px;
}

.ausc-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.ausc-input-wrap {
    flex: 1;
    position: relative;
}

.ausc-flag {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    line-height: 1;
}

#ausc-phone {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    padding: 12px 12px 12px 42px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    box-sizing: border-box;
}

#ausc-phone::placeholder { color: #94a3b8; }
#ausc-phone:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.ausc-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 0 22px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
}

.ausc-btn:hover  { background: #1e293b; }
.ausc-btn:active { transform: scale(0.97); }
.ausc-btn:disabled { background: #94a3b8; cursor: default; }

.ausc-hint {
    font-size: 12px;
    color: #94a3b8;
    font-family: monospace;
}

.ausc-msg {
    display: none;
    font-size: 12px;
    font-family: monospace;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 5px;
}

.ausc-msg--ok  { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; }
.ausc-msg--err { color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; }

/* ── Loading ── */
.ausc-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    color: #64748b;
    font-size: 14px;
}

.ausc-spinner {
    width: 20px; height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: ausc-spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

/* ── Score card ── */
.ausc-score-card {
    display: flex;
    align-items: stretch;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.ausc-score-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    padding: 24px 28px;
    min-width: 110px;
    flex-shrink: 0;
}

.ausc-score-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}

.ausc-score-num {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    font-family: 'Courier New', monospace;
}

.ausc-score-max {
    font-size: 12px;
    color: #475569;
    margin-top: 2px;
}

.ausc-score-right {
    flex: 1;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.ausc-risk-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    width: fit-content;
}

.ausc-risk-summary {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.ausc-number-display {
    font-family: monospace;
    font-size: 12px;
    color: #475569;
    margin-top: 4px;
}

/* ── Flag pills ── */
.ausc-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ausc-flag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid;
}

.ausc-flag-pill--bad  { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.ausc-flag-pill--warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.ausc-flag-pill--ok   { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.ausc-flag-pill--info { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }

/* ── Details grid ── */
.ausc-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ausc-detail {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
}

.ausc-detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.ausc-detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
}

/* ── Lookup history ── */
.ausc-history {
    margin-top: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.ausc-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ausc-history-title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.ausc-history-toggle {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.1s, color 0.1s;
}

.ausc-history-toggle:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ausc-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ausc-history-table thead th {
    padding: 8px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ausc-history-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.ausc-history-table tbody tr:last-child td {
    border-bottom: none;
}

.ausc-history-row {
    cursor: pointer;
    transition: background 0.1s;
}

.ausc-history-row:hover {
    background: #f0f9ff;
}

.ausc-history-row:hover .ausc-history-num {
    text-decoration: underline;
    color: #0f172a;
}

.ausc-history-num {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
}

.ausc-history-date {
    color: #94a3b8;
    font-size: 12px;
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .ausc-details-grid { grid-template-columns: 1fr; }
    .ausc-score-left   { padding: 18px 20px; min-width: 90px; }
    .ausc-score-num    { font-size: 38px; }
    .ausc-history-date { display: none; }
    .ausc-history-table thead th:last-child { display: none; }
}
