/* Extracted inline styles from /sms-preferences.html (H5) */
body::before {
        content: "";
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background:
            radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at bottom right, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
    }

    main { position: relative; z-index: 1; }

    .gradient-text {
        background: linear-gradient(135deg, #3B82F6 0%, #60a5fa 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .page-container {
        max-width: 600px;
        margin: 0 auto;
        padding: 6rem 1.5rem 4rem;
    }

    .page-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
    }

    .page-header p {
        color: #9ca3af;
    }

    /* Status Banner */
    .status-banner {
        padding: 0.875rem 1rem;
        border-radius: 0.75rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-weight: 500;
    }

    .status-banner[hidden] { display: none; }

    .status-banner.info {
        background: rgba(59, 130, 246, 0.15);
        border: 1px solid rgba(59, 130, 246, 0.3);
        color: #93c5fd;
    }

    .status-banner.success {
        background: rgba(16, 185, 129, 0.15);
        border: 1px solid rgba(16, 185, 129, 0.3);
        color: #6ee7b7;
    }

    .status-banner.error {
        background: rgba(239, 68, 68, 0.15);
        border: 1px solid rgba(239, 68, 68, 0.3);
        color: #fca5a5;
    }

    .status-banner i { font-size: 1.125rem; flex-shrink: 0; }

    /* Card Styles */
    .pref-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1rem;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .pref-card h2 {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        color: #fff;
    }

    .pref-card h3 {
        font-size: 1.125rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    /* Command List */
    .command-list {
        display: grid;
        gap: 0.75rem;
        margin: 1.25rem 0;
    }

    .command-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
    }

    .command-item.stop {
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.2);
    }

    .command-item.start {
        background: rgba(16, 185, 129, 0.1);
        border: 1px solid rgba(16, 185, 129, 0.2);
    }

    .command-item.help {
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .command-keyword {
        font-family: 'Source Code Pro', monospace;
        font-weight: 700;
        font-size: 1.1rem;
        min-width: 60px;
    }

    .command-item.stop .command-keyword { color: #ef4444; }
    .command-item.start .command-keyword { color: #10b981; }
    .command-item.help .command-keyword { color: #3b82f6; }

    .command-desc { color: #d1d5db; }

    /* Phone Display */
    .phone-display {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        border-radius: 0.75rem;
    }

    .phone-icon {
        width: 48px;
        height: 48px;
        background: rgba(59, 130, 246, 0.2);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        color: #3b82f6;
    }

    .phone-label {
        font-size: 0.75rem;
        color: #9ca3af;
        margin-bottom: 0.25rem;
    }

    .phone-number {
        font-size: 1.125rem;
        font-weight: 600;
        font-family: 'Source Code Pro', monospace;
    }

    /* Toggle Switch */
    .preference-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .preference-item:last-child { border-bottom: none; }

    .preference-info h4 {
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .preference-info p {
        font-size: 0.875rem;
        color: #6b7280;
    }

    .toggle-switch {
        position: relative;
        width: 48px;
        height: 26px;
        flex-shrink: 0;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 26px;
        transition: 0.3s;
    }

    .toggle-slider::before {
        content: "";
        position: absolute;
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
        background: #fff;
        border-radius: 50%;
        transition: 0.3s;
    }

    .toggle-switch input:checked + .toggle-slider {
        background: #3b82f6;
    }

    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(22px);
    }

    .toggle-switch input:disabled + .toggle-slider {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Radio Options */
    .radio-group {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .radio-option {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0.75rem;
        cursor: pointer;
        transition: all 0.2s;
    }

    .radio-option:hover { border-color: rgba(59, 130, 246, 0.3); }

    .radio-option.selected {
        border-color: #3b82f6;
        background: rgba(59, 130, 246, 0.05);
    }

    .radio-option input {
        margin-top: 0.25rem;
        accent-color: #3b82f6;
    }

    .radio-option input:disabled { cursor: not-allowed; }

    .radio-option h4 {
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .radio-option p {
        font-size: 0.875rem;
        color: #6b7280;
    }

    /* Buttons */
    .btn-group {
        display: flex;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    @media (max-width: 500px) {
        .btn-group { flex-direction: column; }
    }

    .btn {
        flex: 1;
        padding: 0.875rem 1.5rem;
        border-radius: 0.5rem;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.2s;
        border: none;
        text-align: center;
    }

    .btn-primary {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: #fff;
    }

    .btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
    }

    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .btn-secondary {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .btn-secondary:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.1);
    }

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

    .btn-danger {
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.3);
        color: #ef4444;
        width: 100%;
    }

    .btn-danger:hover:not(:disabled) {
        background: rgba(239, 68, 68, 0.2);
    }

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

    /* Info Box */
    .info-box {
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        border-radius: 0.75rem;
        padding: 1rem;
        font-size: 0.875rem;
        color: #9ca3af;
        margin-top: 1.5rem;
    }

    .info-box strong { color: #fff; }

    .info-box a {
        color: #60a5fa;
        text-decoration: none;
    }

    .info-box a:hover { text-decoration: underline; }

    /* Privacy Note */
    .privacy-note {
        margin-top: 1.5rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .privacy-note p {
        font-size: 0.875rem;
        color: #6b7280;
        margin: 0;
    }

    .privacy-note i { margin-right: 0.5rem; }

    /* Footer Links */
    .footer-links {
        text-align: center;
        margin-top: 2rem;
        padding: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 0.875rem;
        color: #6b7280;
    }

    .footer-links a {
        color: #3b82f6;
        text-decoration: none;
    }

    .footer-links a:hover { text-decoration: underline; }

    /* Verifying spinner */
    .verifying-state {
        text-align: center;
        padding: 3rem;
    }

    .verifying-spinner {
        width: 48px;
        height: 48px;
        border: 3px solid rgba(59, 130, 246, 0.2);
        border-top-color: #3b82f6;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 1.5rem;
    }

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

    /* Hidden by default */
    [hidden] { display: none !important; }
