/* ============================================
   RentPhone — Design System v3
   Modern SaaS UI (Stripe/Linear/Vercel inspired)
   Light + Dark theme via CSS custom properties
   ============================================ */

/* ── Design Tokens (Light Theme) ── */
:root {
    /* Primary palette — vibrant indigo */
    --rp-primary: #6366f1;
    --rp-primary-hover: #4f46e5;
    --rp-primary-light: #eef2ff;
    --rp-primary-rgb: 99, 102, 241;
    --rp-primary-glow: rgba(99, 102, 241, 0.35);

    /* Accent for CTAs */
    --rp-accent: #8b5cf6;
    --rp-accent-hover: #7c3aed;

    /* Semantic colors */
    --rp-success: #10b981;
    --rp-success-light: #ecfdf5;
    --rp-warning: #f59e0b;
    --rp-warning-light: #fffbeb;
    --rp-danger: #ef4444;
    --rp-danger-light: #fef2f2;
    --rp-info: #3b82f6;
    --rp-info-light: #eff6ff;

    /* Surfaces */
    --rp-bg: #f8fafc;
    --rp-bg-alt: #f1f5f9;
    --rp-surface: #ffffff;
    --rp-surface-hover: #f8fafc;
    --rp-surface-raised: #ffffff;
    --rp-surface-glass: rgba(255, 255, 255, 0.7);

    /* Text */
    --rp-text: #0f172a;
    --rp-text-secondary: #475569;
    --rp-text-muted: #94a3b8;
    --rp-text-inverse: #ffffff;

    /* Borders */
    --rp-border: #e2e8f0;
    --rp-border-light: #f1f5f9;
    --rp-border-focus: var(--rp-primary);

    /* Shadows — layered for depth */
    --rp-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --rp-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --rp-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --rp-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --rp-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --rp-shadow-glow: 0 0 20px rgba(var(--rp-primary-rgb), 0.15);

    /* Radius */
    --rp-radius-sm: 0.375rem;
    --rp-radius: 0.5rem;
    --rp-radius-md: 0.75rem;
    --rp-radius-lg: 1rem;
    --rp-radius-xl: 1.25rem;
    --rp-radius-full: 9999px;

    /* Header/nav */
    --rp-header-bg: #0f172a;
    --rp-header-text: #f1f5f9;
    --rp-nav-bg: var(--rp-surface);
    --rp-nav-active: var(--rp-primary);
    --rp-nav-text: var(--rp-text-secondary);

    /* Sidebar */
    --rp-sidebar-bg: var(--rp-surface);
    --rp-sidebar-logo-start: #6366f1;
    --rp-sidebar-logo-end: #a855f7;

    /* Misc */
    --rp-transition: 0.18s ease;
    --rp-transition-slow: 0.3s ease;
    --rp-code-bg: #f1f5f9;
    --rp-overlay: rgba(15, 23, 42, 0.5);
    --rp-badge-active-bg: #10b981;
    --rp-scrollbar-thumb: #cbd5e1;

    /* Gradient */
    --rp-gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --rp-gradient-hero: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f59e0b 100%);
}

/* ── Dark Theme ── */
[data-theme="dark"] {
    --rp-primary: #818cf8;
    --rp-primary-hover: #a5b4fc;
    --rp-primary-light: rgba(129, 140, 248, 0.12);
    --rp-primary-rgb: 129, 140, 248;
    --rp-primary-glow: rgba(129, 140, 248, 0.25);

    --rp-accent: #a78bfa;
    --rp-accent-hover: #c4b5fd;

    --rp-success: #34d399;
    --rp-success-light: rgba(52, 211, 153, 0.12);
    --rp-warning: #fbbf24;
    --rp-warning-light: rgba(251, 191, 36, 0.12);
    --rp-danger: #f87171;
    --rp-danger-light: rgba(248, 113, 113, 0.12);
    --rp-info: #60a5fa;
    --rp-info-light: rgba(96, 165, 250, 0.12);

    --rp-bg: #0c0f1a;
    --rp-bg-alt: #151929;
    --rp-surface: #1a1f35;
    --rp-surface-hover: #242942;
    --rp-surface-raised: #242942;
    --rp-surface-glass: rgba(26, 31, 53, 0.8);

    --rp-text: #f1f5f9;
    --rp-text-secondary: #94a3b8;
    --rp-text-muted: #64748b;
    --rp-text-inverse: #0f172a;

    --rp-border: #2a3050;
    --rp-border-light: #1e2440;
    --rp-border-focus: var(--rp-primary);

    --rp-shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
    --rp-shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --rp-shadow-md: 0 4px 6px rgba(0,0,0,0.35);
    --rp-shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
    --rp-shadow-xl: 0 20px 25px rgba(0,0,0,0.45);
    --rp-shadow-glow: 0 0 30px rgba(var(--rp-primary-rgb), 0.2);

    --rp-header-bg: #0c0f1a;
    --rp-header-text: #e2e8f0;
    --rp-nav-bg: #1a1f35;
    --rp-nav-active: var(--rp-primary);
    --rp-nav-text: #94a3b8;

    --rp-sidebar-bg: #1a1f35;
    --rp-sidebar-logo-start: #6366f1;
    --rp-sidebar-logo-end: #a855f7;

    --rp-code-bg: #242942;
    --rp-overlay: rgba(0, 0, 0, 0.7);
    --rp-scrollbar-thumb: #3a4060;

    --rp-gradient-primary: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    --rp-gradient-hero: linear-gradient(135deg, #818cf8 0%, #f472b6 50%, #fbbf24 100%);
}

/* ── Base Styles ── */
*,
*::before,
*::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--rp-bg);
    color: var(--rp-text);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: var(--rp-primary); text-decoration: none; transition: color var(--rp-transition); }
a:hover { color: var(--rp-primary-hover); }

::selection { background: rgba(var(--rp-primary-rgb), 0.2); }

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rp-scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--rp-text-muted); }

/* =============================================
   MOBILE TOPBAR
   ============================================= */
.rp-mobile-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 0.75rem;
    background: var(--rp-header-bg);
    position: sticky; top: 0; z-index: 1040;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
}
.rp-hamburger {
    background: none; border: none; color: var(--rp-header-text);
    font-size: 1.5rem; padding: 0.25rem; cursor: pointer;
    border-radius: var(--rp-radius-sm);
    transition: background var(--rp-transition);
}
.rp-hamburger:hover { background: rgba(255,255,255,0.1); }
.rp-mobile-brand {
    color: var(--rp-header-text); text-decoration: none;
    font-weight: 700; font-size: 1.1rem;
    letter-spacing: -0.01em;
}
.rp-mobile-brand:hover { color: rgba(255,255,255,0.85); }
.rp-mobile-right {
    display: flex; align-items: center; gap: 0.5rem;
}
.rp-m-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.35rem 0.75rem; border-radius: var(--rp-radius-full);
    font-size: 0.82rem; font-weight: 600;
    text-decoration: none; transition: all var(--rp-transition);
    color: var(--rp-header-text);
}
.rp-m-signin { background: rgba(255,255,255,0.08); }
.rp-m-signin:hover { background: rgba(255,255,255,0.15); color: #fff; }
.rp-m-register {
    background: var(--rp-gradient-primary); color: #fff;
    border: none;
}
.rp-m-register:hover { opacity: 0.9; color: #fff; }

/* Mobile sidebar overlay */
.rp-sidebar-overlay {
    position: fixed; inset: 0; background: var(--rp-overlay);
    z-index: 1029; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}
.rp-sidebar-overlay.open { opacity: 1; pointer-events: auto; }

/* Balance badge */
.rp-balance-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.85rem; border-radius: var(--rp-radius-full);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff; font-weight: 600; font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: transform var(--rp-transition), box-shadow var(--rp-transition);
}
.rp-balance-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* =============================================
   OUTER CONTAINER
   ============================================= */
.rp-outer {
    max-width: 1536px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--rp-bg);
}

@media (min-width: 1200px) {
    .rp-outer {
        display: grid;
        grid-template-columns: 400px 1fr;
        grid-template-rows: auto auto 1fr;
        margin-bottom: 2rem;
    }
}

/* =============================================
   DESKTOP HEADER ROW
   ============================================= */
.rp-desk-header { display: none; }

@media (min-width: 1200px) {
    .rp-desk-header {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        grid-column: 1 / -1;
        grid-row: 1 / 2;
        height: 56px;
        padding: 0 1.5rem 0 calc(400px + 2rem);
        background: var(--rp-header-bg);
        position: relative;
    }
    .rp-desk-header::before {
        content: '';
        position: absolute;
        top: 0; bottom: 0;
        left: -9999px; right: -9999px;
        background: var(--rp-header-bg);
        z-index: -1;
    }
}
.rp-desk-auth {
    display: flex; align-items: center; gap: 0.5rem;
}
.rp-d-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.4rem 1rem; border-radius: var(--rp-radius-full);
    font-size: 0.875rem; font-weight: 600;
    text-decoration: none; transition: all var(--rp-transition);
    cursor: pointer;
}
.rp-d-signin { background: transparent; color: var(--rp-header-text); border: none; }
.rp-d-signin:hover { background: rgba(255,255,255,0.08); color: #fff; }
.rp-d-register {
    background: var(--rp-gradient-primary); color: #fff;
    border: none; padding: 0.45rem 1.25rem;
    box-shadow: 0 2px 8px var(--rp-primary-glow);
}
.rp-d-register:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px var(--rp-primary-glow); }
.rp-d-admin { color: rgba(255,255,255,0.6); background: none; border: none; font-size: 1rem; }
.rp-d-admin:hover { color: #fff; }
.rp-d-logout { color: rgba(255,255,255,0.5); background: none; border: none; }
.rp-d-logout:hover { color: #fff; }

/* Theme toggle button */
.rp-theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: var(--rp-radius-full);
    background: rgba(255,255,255,0.08);
    border: none; color: rgba(255,255,255,0.7);
    cursor: pointer; font-size: 0.95rem;
    transition: all var(--rp-transition);
}
.rp-theme-toggle:hover { background: rgba(255,255,255,0.15); color: #fff; transform: rotate(15deg); }

/* Mobile theme toggle (in topbar) */
.rp-mobile-topbar .rp-theme-toggle {
    width: 32px; height: 32px; font-size: 0.9rem;
}

/* =============================================
   DESKTOP NAV ROW
   ============================================= */
.rp-desk-nav { display: none; }

@media (min-width: 1200px) {
    .rp-desk-nav {
        display: block;
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        background: var(--rp-nav-bg);
        padding: 0 1.5rem 0 calc(400px + 2rem);
        border-bottom: 1px solid var(--rp-border);
        position: relative;
        z-index: 5;
    }
    .rp-desk-nav::before {
        content: '';
        position: absolute;
        top: 0; bottom: 0;
        left: -9999px; right: -9999px;
        background: var(--rp-nav-bg);
        border-bottom: 1px solid var(--rp-border);
        z-index: -1;
    }
}
.rp-hnav { display: flex; align-items: center; }
.rp-hnav-item {
    display: flex; align-items: center; gap: 0.3rem;
    height: 48px; padding: 0 1rem;
    font-size: 0.9375rem; font-weight: 500;
    color: var(--rp-nav-text); text-decoration: none;
    transition: background var(--rp-transition), color var(--rp-transition);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    position: relative;
}
.rp-hnav-item:hover {
    color: var(--rp-text);
    background: rgba(var(--rp-primary-rgb), 0.04);
}
.rp-hnav-item.active {
    color: var(--rp-primary);
    font-weight: 600;
    border-bottom-color: var(--rp-primary);
}

/* Nav badge */
.rp-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    font-size: 0.68rem; font-weight: 700;
    color: #fff;
    background: var(--rp-danger);
    border-radius: var(--rp-radius-full);
    margin-left: 4px;
    line-height: 1;
    animation: rpBadgePop 0.3s ease;
}
@keyframes rpBadgePop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* =============================================
   LEFT SIDEBAR
   ============================================= */
.rp-sidebar { display: none; }

@media (min-width: 1200px) {
    .rp-sidebar {
        display: flex; flex-direction: column;
        grid-column: 1 / 2;
        grid-row: 1 / -1;
        margin-top: 1rem;
        max-height: 100vh;
        overflow-y: auto;
        z-index: 10;
        background: var(--rp-sidebar-bg);
        border-radius: 1.5rem 1.5rem var(--rp-radius-md) var(--rp-radius-md);
        box-shadow: var(--rp-shadow-lg);
        border: 1px solid var(--rp-border);
    }
}

/* Logo header */
.rp-sidebar-logo {
    background: var(--rp-gradient-primary);
    border-radius: 1.5rem 1.5rem 0 0;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
/* Decorative mesh pattern */
.rp-sidebar-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.rp-logo-link {
    display: flex; align-items: center; gap: 1rem;
    height: 80px; padding: 0 1.5rem;
    text-decoration: none; color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.rp-logo-link svg { flex-shrink: 0; }
.rp-logo-info { display: flex; flex-direction: column; }
.rp-logo-text {
    display: block;
    font-size: 1.2rem; font-weight: 800;
    color: #fff; line-height: 1.6;
    letter-spacing: -0.02em;
}
.rp-logo-link:hover .rp-logo-text { color: rgba(255,255,255,0.9); }
.rp-logo-subtitle {
    display: block;
    font-size: 0.75rem; font-weight: 500;
    color: rgba(255,255,255,0.75);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* Sidebar tabs */
.rp-sidebar-tabs {
    display: flex; align-items: center;
    padding: 0.6rem 1.25rem 0;
    gap: 0.75rem;
    background: var(--rp-surface);
    border-bottom: 1px solid var(--rp-border);
}
.rp-sidebar-tab {
    font-size: 0.85rem; font-weight: 600;
    color: var(--rp-text-secondary); text-decoration: none;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid transparent;
    transition: color var(--rp-transition), border-color var(--rp-transition);
    white-space: nowrap;
}
.rp-sidebar-tab:hover { color: var(--rp-primary); }
.rp-sidebar-tab.active {
    color: var(--rp-primary);
    border-bottom-color: var(--rp-primary);
}
.rp-sidebar-tab-info {
    margin-left: auto;
    color: var(--rp-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    flex-shrink: 0;
}
.rp-sidebar-tab-info:hover { color: var(--rp-primary); }
.rp-sidebar-actions {
    display: flex; gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--rp-surface);
    border-bottom: 1px solid var(--rp-border);
    justify-content: space-between;
}
.rp-sidebar-action-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--rp-radius-full);
    border: 1.5px solid var(--rp-border);
    background: var(--rp-surface);
    color: var(--rp-text-secondary);
    font-size: 0.78rem; font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--rp-transition);
}
.rp-sidebar-action-btn:hover {
    border-color: var(--rp-primary); color: var(--rp-primary);
    background: var(--rp-primary-light);
    transform: translateY(-1px);
}

/* Mobile nav inside sidebar drawer */
.rp-sidebar-mobilenav {
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    border-bottom: 1px solid var(--rp-border);
    background: var(--rp-surface);
}
.rp-mnav-item {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem; font-weight: 500;
    color: var(--rp-text-secondary); text-decoration: none;
    border-radius: var(--rp-radius);
    transition: background var(--rp-transition), color var(--rp-transition);
}
.rp-mnav-item:hover { background: var(--rp-primary-light); color: var(--rp-primary); }
.rp-mnav-item.active { color: var(--rp-primary); font-weight: 600; background: var(--rp-primary-light); }

/* =============================================
   MAIN CONTENT
   ============================================= */
.rp-content {
    padding: 1.5rem 1.5rem 2rem;
    min-height: 300px;
    transition: opacity 0.2s ease;
}

@media (min-width: 1200px) {
    .rp-content {
        grid-column: 1 / -1;
        grid-row: 3 / 4;
        background: var(--rp-bg-alt);
        border-radius: var(--rp-radius-lg);
        margin: 0.5rem 1.5rem 0 400px;
        padding: 2rem 2.5rem;
    }
}

/* =============================================
   SIDEBAR — Service/Country Steps
   ============================================= */
.rp-steps-area {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex; flex-direction: column;
    gap: 1.5rem;
    background: var(--rp-surface);
}
.rp-steps-area::-webkit-scrollbar { width: 4px; }
.rp-steps-area::-webkit-scrollbar-track { background: transparent; }
.rp-steps-area::-webkit-scrollbar-thumb { background: var(--rp-scrollbar-thumb); border-radius: 2px; }

/* Step heading */
.rp-step-heading {
    font-size: 0.8rem; font-weight: 700;
    color: var(--rp-text-muted); margin-bottom: 0.75rem;
    padding-left: 0.25rem;
    display: flex; align-items: center; justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.rp-step-heading-sort {
    color: var(--rp-text-muted); font-size: 0.9rem;
    cursor: pointer; transition: color var(--rp-transition);
}
.rp-step-heading-sort:hover { color: var(--rp-primary); }

/* Search input */
.rp-search {
    width: 100%; display: flex; align-items: center;
    border: 1.5px solid var(--rp-border); border-radius: var(--rp-radius-lg);
    background: var(--rp-surface); padding: 0 0.85rem;
    height: 2.5rem; margin-bottom: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rp-search:hover { border-color: var(--rp-text-muted); }
.rp-search:focus-within {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 3px rgba(var(--rp-primary-rgb), 0.1);
}
.rp-search-icon-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--rp-primary-light); flex-shrink: 0; margin-right: 0.5rem;
}
.rp-search-icon-wrap i { color: var(--rp-primary); font-size: 0.75rem; }
.rp-search i { color: var(--rp-primary); font-size: 0.85rem; margin-right: 0.5rem; flex-shrink: 0; }
.rp-search input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 0.85rem; color: var(--rp-text);
    font-family: inherit;
}
.rp-search input::placeholder { color: var(--rp-text-muted); }

/* Selected chip */
.rp-selected-chip {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 0.75rem; background: var(--rp-primary-light);
    border: 1.5px solid rgba(var(--rp-primary-rgb), 0.3); border-radius: var(--rp-radius-lg);
    margin-bottom: 0.75rem;
    animation: rpChipIn 0.2s ease;
}
@keyframes rpChipIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.rp-chip-icon { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rp-chip-name {
    font-size: 0.85rem; font-weight: 600; color: var(--rp-primary);
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rp-chip-remove {
    background: none; border: none; color: var(--rp-primary);
    cursor: pointer; padding: 0.15rem; line-height: 1;
    border-radius: 50%; flex-shrink: 0; font-size: 0.8rem;
    transition: background var(--rp-transition), color var(--rp-transition);
}
.rp-chip-remove:hover { background: var(--rp-primary); color: #fff; }

/* Item list */
.rp-item-list {
    overflow-y: auto; border-radius: var(--rp-radius-md);
    background: var(--rp-surface); max-height: 420px;
    border: 1px solid var(--rp-border);
}
.rp-item-list::-webkit-scrollbar { width: 4px; }
.rp-item-list::-webkit-scrollbar-track { background: transparent; }
.rp-item-list::-webkit-scrollbar-thumb { background: var(--rp-scrollbar-thumb); border-radius: 2px; }

/* List items */
.rp-list-item {
    display: flex; align-items: center;
    padding: 0 0.75rem; height: 3rem;
    text-decoration: none; color: var(--rp-text);
    cursor: pointer; transition: background 0.12s ease; gap: 0.5rem;
}
.rp-list-item:hover { background: var(--rp-surface-hover); color: var(--rp-text); }
.rp-list-item.active {
    background: var(--rp-gradient-primary); color: #fff;
}
.rp-list-item.active .rp-item-name,
.rp-list-item.active .rp-item-qty,
.rp-list-item.active .rp-item-price,
.rp-list-item.active .rp-from-label,
.rp-list-item.active .rp-qty-label { color: #fff; }
.rp-list-item.active .rp-price-badge { background: rgba(255,255,255,0.2); color: #fff; }

.rp-flag { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rp-svc-icon { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; }
.rp-item-name {
    font-size: 0.85rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
    color: var(--rp-text);
}
.rp-item-price { font-size: 0.78rem; font-weight: 700; color: var(--rp-primary); flex-shrink: 0; }
.rp-item-qty { font-size: 0.68rem; color: var(--rp-text-muted); font-weight: 500; flex-shrink: 0; min-width: 40px; text-align: right; }

/* Service meta */
.rp-item-meta {
    display: flex; flex-direction: column; align-items: flex-end;
    justify-content: center; flex-shrink: 0; margin-left: auto; gap: 1px;
}
.rp-from-price { display: inline-flex; align-items: center; gap: 4px; }
.rp-from-label { font-size: 0.68rem; font-weight: 500; color: var(--rp-text-muted); }
.rp-price-badge {
    display: inline-flex; align-items: center;
    padding: 0 0.4rem; height: 1.3rem; border-radius: var(--rp-radius-full);
    background: var(--rp-bg-alt); font-size: 0.8rem; font-weight: 700; color: var(--rp-text);
}
.rp-qty-label { font-size: 0.66rem; font-weight: 500; color: var(--rp-success); line-height: 1; white-space: nowrap; }

/* Favorite star */
.rp-fav-star {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; flex-shrink: 0;
    color: var(--rp-text-muted); font-size: 0.85rem;
    cursor: pointer; transition: color var(--rp-transition), transform var(--rp-transition);
    background: none; border: none; padding: 0;
}
.rp-fav-star:hover { color: var(--rp-warning); transform: scale(1.2); }
.rp-fav-star.active { color: var(--rp-warning); }
.rp-list-item.active .rp-fav-star { color: rgba(255,255,255,0.6); }
.rp-list-item.active .rp-fav-star.active { color: var(--rp-warning); }

/* Show all link */
.rp-show-all {
    display: flex; align-items: center; justify-content: center;
    padding: 0.55rem; font-size: 0.8rem; font-weight: 600;
    color: var(--rp-primary); cursor: pointer;
    text-decoration: none; transition: background var(--rp-transition);
    border-top: 1px solid var(--rp-border);
}
.rp-show-all:hover { background: var(--rp-primary-light); color: var(--rp-primary-hover); }

/* Region labels */
.rp-region-label {
    padding: 0.3rem 0.75rem; font-size: 0.62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px; color: var(--rp-text-muted);
    background: var(--rp-bg-alt); border-bottom: 1px solid var(--rp-border);
    position: sticky; top: 0; z-index: 1;
}
.rp-region-label .bi-star-fill { color: var(--rp-warning); font-size: 0.6rem; }

/* Sort bar */
.rp-sort-bar {
    display: flex; gap: 0; padding: 0.25rem 0.5rem;
    background: var(--rp-bg-alt); border-bottom: 1px solid var(--rp-border);
}
.rp-sort-btn {
    flex: 1; padding: 0.25rem 0.4rem; font-size: 0.68rem; font-weight: 600;
    border: 1px solid var(--rp-border); background: var(--rp-surface); color: var(--rp-text-muted);
    cursor: pointer; transition: all var(--rp-transition); white-space: nowrap;
}
.rp-sort-btn:first-child { border-radius: var(--rp-radius-sm) 0 0 var(--rp-radius-sm); }
.rp-sort-btn:last-child { border-radius: 0 var(--rp-radius-sm) var(--rp-radius-sm) 0; }
.rp-sort-btn:not(:first-child) { border-left: 0; }
.rp-sort-btn:hover { background: var(--rp-surface-hover); }
.rp-sort-btn.active { background: var(--rp-primary); color: #fff; border-color: var(--rp-primary); }
.rp-sort-btn.active + .rp-sort-btn { border-left-color: var(--rp-primary); }

.rp-cat-label i { color: var(--rp-primary); margin-right: 0.15rem; }

/* Buy panel */
#buyPanel { background: var(--rp-surface); border-radius: var(--rp-radius-md); padding: 0.5rem; }
.rp-op-placeholder {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1rem; border: 1.5px dashed var(--rp-border);
    border-radius: var(--rp-radius-md); color: var(--rp-text-muted);
    font-size: 0.85rem; font-weight: 500;
}
.rp-op-placeholder i { color: var(--rp-info); font-size: 1rem; }
.rp-buy-ready { padding: 0.75rem; }

/* Loading / empty */
.rp-loading, .rp-empty {
    text-align: center; padding: 2rem 1rem;
    color: var(--rp-text-muted); font-size: 0.85rem;
}

/* =============================================
   HOME — Hero Section
   ============================================= */
.rp-home-content { }

.rp-hero {
    text-align: center;
    padding: 3.5rem 1rem 2.5rem;
    position: relative;
}
.rp-hero h1 {
    font-size: 2.75rem; font-weight: 900; margin-bottom: 0.75rem;
    letter-spacing: -0.035em;
    line-height: 1.1;
    background: var(--rp-gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rp-hero-sub {
    font-size: 1.1rem; color: var(--rp-text-secondary);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto; margin-right: auto;
}
.rp-hero-actions {
    display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap;
}
.rp-hero-actions .btn-primary {
    background: var(--rp-gradient-primary);
    border: none;
    box-shadow: 0 4px 15px var(--rp-primary-glow);
    padding: 0.6rem 1.75rem;
    font-weight: 600;
    transition: all var(--rp-transition);
}
.rp-hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--rp-primary-glow);
}
.rp-hero-actions .btn-outline-secondary {
    border-color: var(--rp-border);
    color: var(--rp-text-secondary);
    padding: 0.6rem 1.75rem;
    font-weight: 600;
}
.rp-hero-actions .btn-outline-secondary:hover {
    border-color: var(--rp-primary);
    color: var(--rp-primary);
    background: var(--rp-primary-light);
}

/* How it works */
.rp-how-it-works { padding: 2rem 0; }
.rp-how-it-works h4 {
    font-weight: 800; margin-bottom: 1.25rem; font-size: 1.15rem;
    color: var(--rp-text); letter-spacing: -0.01em;
}

.rp-step-card {
    background: var(--rp-surface); border-radius: var(--rp-radius-lg);
    padding: 1.5rem 1rem; text-align: center;
    box-shadow: var(--rp-shadow-sm); height: 100%;
    border: 1px solid var(--rp-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}
.rp-step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--rp-gradient-primary);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.rp-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rp-shadow-lg);
    border-color: rgba(var(--rp-primary-rgb), 0.2);
}
.rp-step-card:hover::before { opacity: 1; }
.rp-step-icon {
    font-size: 1.75rem; color: var(--rp-primary); margin-bottom: 0.75rem;
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: var(--rp-radius-md);
    background: var(--rp-primary-light);
}
.rp-step-label { font-weight: 700; font-size: 0.88rem; margin-bottom: 0.25rem; color: var(--rp-text); }

/* Features */
.rp-features { padding: 1rem 0 2rem; }
.rp-feature-card {
    background: var(--rp-surface); border-radius: var(--rp-radius-lg);
    padding: 1.5rem; box-shadow: var(--rp-shadow-sm); height: 100%;
    border: 1px solid var(--rp-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.rp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rp-shadow-lg);
    border-color: rgba(var(--rp-primary-rgb), 0.2);
}
.rp-feature-card i {
    font-size: 1.75rem; display: inline-flex;
    align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border-radius: var(--rp-radius-md);
    margin-bottom: 0.75rem;
}
.rp-feature-card i.text-success { background: var(--rp-success-light); }
.rp-feature-card i.text-warning { background: var(--rp-warning-light); }
.rp-feature-card i.text-info { background: var(--rp-info-light); }
.rp-feature-card h6 { font-weight: 700; margin-bottom: 0.25rem; color: var(--rp-text); }

/* Results panel */
.rp-results-header { margin-bottom: 0.75rem; }
.rp-results-header h5 { margin: 0; font-weight: 700; font-size: 1rem; color: var(--rp-text); }
.rp-results-body {
    background: var(--rp-surface); border-radius: var(--rp-radius-lg);
    box-shadow: var(--rp-shadow-sm); overflow: hidden;
    border: 1px solid var(--rp-border);
}
#resultsTable th {
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.5px; font-weight: 600; color: var(--rp-text-muted);
}
.rp-result-row { transition: background var(--rp-transition); }
.rp-result-row:hover { background: var(--rp-primary-light); }

/* Toast */
.rp-toast {
    position: fixed; top: 80px; right: 20px; z-index: 9999;
    min-width: 280px; max-width: 400px; animation: rpToastIn 0.35s ease;
    border-radius: var(--rp-radius-md) !important;
    box-shadow: var(--rp-shadow-xl);
    backdrop-filter: blur(8px);
}
@keyframes rpToastIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =============================================
   ACTIVATIONS
   ============================================= */
.rp-act-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem;
}
.rp-act-title {
    font-size: 1.5rem; font-weight: 900; margin: 0; color: var(--rp-text);
    letter-spacing: -0.025em;
}
.rp-act-stats {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: var(--rp-text-muted);
}
.rp-act-stat-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rp-border); }

/* Filter tabs */
.rp-act-filters { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.rp-status-filter {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 1rem; border-radius: var(--rp-radius-full);
    border: 1.5px solid var(--rp-border); background: var(--rp-surface);
    font-size: 0.8rem; font-weight: 600; color: var(--rp-text-secondary);
    cursor: pointer; transition: all 0.2s ease;
}
.rp-status-filter:hover { border-color: var(--rp-primary); color: var(--rp-primary); background: var(--rp-primary-light); }
.rp-status-filter.active {
    background: var(--rp-gradient-primary); border-color: transparent; color: #fff;
    box-shadow: 0 2px 8px var(--rp-primary-glow);
}
.rp-filter-count { font-size: 0.72rem; font-weight: 600; min-width: 1.2rem; text-align: center; }

/* Table */
.rp-act-table-wrap {
    background: var(--rp-surface); border-radius: var(--rp-radius-lg);
    box-shadow: var(--rp-shadow-sm); overflow-x: auto;
    border: 1px solid var(--rp-border);
}
.rp-act-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.rp-act-table thead th {
    padding: 0.7rem 1rem; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--rp-text-muted);
    border-bottom: 1px solid var(--rp-border); white-space: nowrap;
    background: var(--rp-bg-alt);
}
.rp-th-sub { font-weight: 500; text-transform: none; color: var(--rp-text-muted); font-size: 0.68rem; }
.rp-th-id { width: 7%; } .rp-th-date { width: 14%; }
.rp-th-service { width: 17%; } .rp-th-country { width: 14%; }
.rp-th-price { width: 11%; } .rp-th-phone { width: 25%; }
.rp-th-status { width: 12%; text-align: center; }

/* Rows */
.rp-order-row { cursor: pointer; transition: background var(--rp-transition); }
.rp-order-row:hover { background: var(--rp-surface-hover); }
.rp-order-row td {
    padding: 0.65rem 1rem; border-bottom: 1px solid var(--rp-border-light); vertical-align: middle;
}
.rp-td-id { color: var(--rp-text-muted); font-size: 0.78rem; }
.rp-td-date { color: var(--rp-text-muted); font-size: 0.78rem; white-space: nowrap; }
.rp-td-service { font-weight: 600; color: var(--rp-text); }
.rp-td-country { color: var(--rp-text-secondary); }
.rp-price-val { font-weight: 700; color: var(--rp-text); }

/* Phone & code */
.rp-phone-row { display: flex; align-items: center; gap: 0.35rem; }
.rp-phone-num {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-weight: 500; color: var(--rp-text); cursor: pointer; font-size: 0.83rem;
    transition: color var(--rp-transition);
}
.rp-phone-num:hover { color: var(--rp-primary); }
.rp-copy-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: var(--rp-radius);
    border: none; background: transparent; color: var(--rp-text-muted);
    cursor: pointer; font-size: 0.8rem; transition: all var(--rp-transition);
}
.rp-copy-btn:hover { background: var(--rp-primary-light); color: var(--rp-primary); }
.rp-copied { color: var(--rp-success) !important; animation: rpCopied 0.3s ease; }
@keyframes rpCopied {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.rp-code-row { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.2rem; }
.rp-sms-code {
    display: inline-block; padding: 0.2rem 0.6rem;
    background: var(--rp-success-light); color: var(--rp-success); border-radius: var(--rp-radius);
    font-family: monospace; font-weight: 700; font-size: 0.88rem;
    letter-spacing: 1px;
}
.rp-copy-code { width: 22px; height: 22px; font-size: 0.7rem; }

.rp-sms-waiting {
    display: flex; align-items: center; gap: 0.4rem;
    margin-top: 0.3rem; font-size: 0.75rem; color: var(--rp-warning);
    font-weight: 500;
}
.rp-pulse {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; background: var(--rp-warning);
    animation: rpPulse 1.4s ease-in-out infinite;
}
@keyframes rpPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}
.rp-sms-indicator { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.25rem; }
.rp-sms-icon { color: var(--rp-primary); font-size: 0.9rem; }
.rp-sms-count { color: var(--rp-primary); font-size: 0.8rem; font-weight: 600; }

/* Status badges */
.rp-status-badge {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--rp-radius-full); font-size: 0.72rem; font-weight: 600;
    text-align: center; white-space: nowrap;
    gap: 0.3rem;
}
.rp-st-pending  { background: var(--rp-info-light); color: var(--rp-info); }
.rp-st-completed { background: var(--rp-success-light); color: var(--rp-success); }
.rp-st-canceled { background: var(--rp-danger-light); color: var(--rp-danger); }
.rp-st-timeout  { background: var(--rp-warning-light); color: #92400e; }
.rp-st-finished { background: var(--rp-success-light); color: var(--rp-success); }

[data-theme="dark"] .rp-st-timeout { color: var(--rp-warning); }

/* Timer */
.rp-timer {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.78rem; font-weight: 600; color: var(--rp-primary);
    text-align: center; margin-top: 0.25rem;
    font-variant-numeric: tabular-nums;
}
.rp-timer-expired { color: var(--rp-danger); }

/* New row animation */
.rp-row-new { animation: rpSlideIn 0.5s ease-out; }
@keyframes rpSlideIn {
    from { opacity: 0; transform: translateY(-10px); background: var(--rp-primary-light); }
    to { opacity: 1; transform: translateY(0); background: transparent; }
}

/* Empty state */
.rp-empty-state {
    text-align: center; padding: 4rem 1rem; color: var(--rp-text-muted);
}
.rp-empty-state i {
    font-size: 3rem; display: block; margin-bottom: 1rem;
    color: var(--rp-border);
}
.rp-empty-state p { margin-bottom: 1.25rem; font-size: 0.95rem; }
.rp-buy-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.6rem 1.75rem;
    background: var(--rp-gradient-primary); color: #fff; border-radius: var(--rp-radius-full);
    text-decoration: none; font-weight: 600; font-size: 0.88rem;
    transition: all var(--rp-transition);
    box-shadow: 0 4px 15px var(--rp-primary-glow);
}
.rp-buy-btn:hover {
    transform: translateY(-2px); color: #fff;
    box-shadow: 0 8px 25px var(--rp-primary-glow);
}

/* Order detail panel */
.rp-order-panel {
    position: fixed; top: 0; right: -420px; width: 400px;
    height: 100vh; background: var(--rp-surface); z-index: 1050;
    box-shadow: var(--rp-shadow-xl);
    transition: right 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex; flex-direction: column; overflow-y: auto;
    border-left: 1px solid var(--rp-border);
}
.rp-order-panel.open { right: 0; }
.rp-panel-overlay {
    position: fixed; inset: 0; background: var(--rp-overlay);
    z-index: 1049; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}
.rp-panel-overlay.open { opacity: 1; pointer-events: auto; }
.rp-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--rp-border);
}
.rp-panel-title { font-size: 1rem; font-weight: 700; color: var(--rp-text); }
.rp-panel-close {
    width: 32px; height: 32px; border-radius: var(--rp-radius);
    border: none; background: transparent; color: var(--rp-text-muted);
    cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--rp-transition);
}
.rp-panel-close:hover { background: var(--rp-surface-hover); color: var(--rp-text); }
.rp-panel-body { padding: 1.5rem; flex: 1; }
.rp-panel-status-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.rp-panel-timer { font-size: 1rem; }
.rp-panel-info {
    background: var(--rp-bg-alt); border-radius: var(--rp-radius-md);
    padding: 1rem; margin-bottom: 1.25rem;
    border: 1px solid var(--rp-border-light);
}
.rp-panel-row {
    display: flex; justify-content: space-between;
    padding: 0.4rem 0; font-size: 0.82rem;
    color: var(--rp-text);
}
.rp-panel-row + .rp-panel-row { border-top: 1px solid var(--rp-border); }
.rp-panel-label { color: var(--rp-text-muted); }
.rp-panel-phone-block { margin-bottom: 1.25rem; }
.rp-panel-phone {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1rem; background: var(--rp-primary-light);
    border-radius: var(--rp-radius-md); cursor: pointer;
    font-family: monospace; font-size: 1.05rem; font-weight: 600;
    color: var(--rp-primary); transition: all var(--rp-transition);
    border: 1px solid rgba(var(--rp-primary-rgb), 0.15);
}
.rp-panel-phone:hover { background: rgba(var(--rp-primary-rgb), 0.15); transform: translateY(-1px); }
.rp-panel-copy-icon { margin-left: auto; font-size: 0.85rem; opacity: 0.6; }
.rp-panel-sms { margin-bottom: 1rem; }
.rp-sms-msg {
    background: var(--rp-bg-alt); border-radius: var(--rp-radius);
    padding: 0.75rem; margin-bottom: 0.5rem;
    border: 1px solid var(--rp-border-light);
}
.rp-sms-text { font-size: 0.82rem; color: var(--rp-text); line-height: 1.4; margin-bottom: 0.3rem; }
.rp-sms-code-block { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; }
.rp-sms-code-val {
    display: inline-block; padding: 0.2rem 0.6rem;
    background: var(--rp-success-light); color: var(--rp-success); border-radius: var(--rp-radius-sm);
    font-family: monospace; font-weight: 700; font-size: 1rem;
    letter-spacing: 1px;
}
.rp-sms-time { font-size: 0.7rem; color: var(--rp-text-muted); margin-top: 0.25rem; }
.rp-sms-empty { text-align: center; padding: 1rem; color: var(--rp-text-muted); font-size: 0.82rem; }
.rp-panel-actions { display: flex; gap: 0.5rem; padding-top: 0.5rem; }
.rp-act-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1.25rem; border-radius: var(--rp-radius-full);
    border: none; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all var(--rp-transition);
}
.rp-act-cancel { background: var(--rp-danger-light); color: var(--rp-danger); }
.rp-act-cancel:hover { background: var(--rp-danger); color: #fff; transform: translateY(-1px); }

/* SMS expand row */
.rp-has-sms { cursor: pointer; }
.rp-has-sms:hover { background: var(--rp-primary-light); }
.rp-expand-icon {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.2s;
    color: var(--rp-text-muted);
}
.rp-row-expanded .rp-expand-icon { transform: rotate(180deg); }

.rp-sms-detail-row td {
    padding: 0 !important;
    border-top: none !important;
    background: var(--rp-bg-alt);
}
.rp-sms-detail-wrap {
    padding: 0.75rem 1.5rem 1rem;
    display: flex; flex-direction: column;
    gap: 0.75rem;
}
.rp-sms-bubble {
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-left: 3px solid var(--rp-primary);
    border-radius: var(--rp-radius);
    padding: 0.75rem 1rem;
    transition: border-color var(--rp-transition);
}
.rp-sms-bubble:hover { border-left-color: var(--rp-accent); }
.rp-sms-bubble-header {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.75rem; color: var(--rp-text-muted);
    margin-bottom: 0.4rem;
}
.rp-sms-bubble-header i { color: var(--rp-primary); }
.rp-sms-bubble-text {
    font-size: 0.88rem; color: var(--rp-text);
    line-height: 1.5; word-break: break-word;
}
.rp-sms-bubble-code {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 0.5rem; padding: 0.35rem 0.75rem;
    background: var(--rp-success-light);
    border-radius: var(--rp-radius);
    border: 1px solid rgba(16, 185, 129, 0.15);
}
.rp-sms-code-label { font-size: 0.78rem; color: var(--rp-text-secondary); }
.rp-sms-code-value {
    font-weight: 700; font-size: 1.1rem; color: var(--rp-success);
    font-family: "SFMono-Regular", Consolas, monospace;
    letter-spacing: 2px;
}
.rp-sms-bubble-code .rp-copy-btn {
    font-size: 0.75rem; color: var(--rp-primary);
    background: none; border: none; cursor: pointer;
    padding: 0.15rem 0.4rem; border-radius: var(--rp-radius-sm);
}
.rp-sms-bubble-code .rp-copy-btn:hover { background: var(--rp-primary-light); }

/* =============================================
   GENERIC STYLES
   ============================================= */
.token-input, .font-monospace {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.token-input { font-size: 0.85rem; letter-spacing: 1px; }
.copy-btn, .copy-code-btn { white-space: nowrap; }
.countdown-timer { font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }

.activation-card { border-left: 4px solid var(--rp-primary); transition: box-shadow 0.2s ease; }
.activation-card:hover { box-shadow: var(--rp-shadow-md) !important; }

.payment-method-card {
    cursor: pointer; transition: all 0.25s ease;
    border: 2px solid var(--rp-border);
    border-radius: var(--rp-radius-lg) !important;
    background: var(--rp-surface);
}
.payment-method-card:hover:not(.opacity-50) {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 3px rgba(var(--rp-primary-rgb), 0.1), var(--rp-shadow-md);
    transform: translateY(-2px);
}
.payment-method-card.border-primary {
    border-width: 2px; border-color: var(--rp-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--rp-primary-rgb), 0.1);
}

/* =============================================
   AUTH PAGES (Login/Signup)
   ============================================= */
.card {
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-lg);
    background: var(--rp-surface);
    color: var(--rp-text);
    box-shadow: var(--rp-shadow-sm);
    transition: box-shadow 0.25s ease;
}
.card:hover { box-shadow: var(--rp-shadow-md); }
.card-header {
    border-bottom: 1px solid var(--rp-border);
    background: var(--rp-surface);
    color: var(--rp-text);
}
.card-footer {
    border-top: 1px solid var(--rp-border);
    background: var(--rp-bg-alt);
}

/* Better form inputs */
.form-control, .form-select {
    border-radius: var(--rp-radius);
    border-color: var(--rp-border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.form-control:focus, .form-select:focus {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 3px rgba(var(--rp-primary-rgb), 0.1);
}

/* Primary button with gradient */
.btn-primary {
    background: var(--rp-gradient-primary);
    border: none;
    font-weight: 600;
    transition: all var(--rp-transition);
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--rp-primary-glow);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    font-weight: 600;
}

.badge { font-weight: 500; }
.table { color: var(--rp-text); }
.table > :not(caption) > * > * { padding: 0.65rem 0.75rem; vertical-align: middle; }
.table-dark th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.table-hover > tbody > tr:hover > * {
    background-color: var(--rp-surface-hover);
    color: var(--rp-text);
}
pre { border-radius: var(--rp-radius); font-size: 0.85rem; }
pre code { white-space: pre-wrap; word-break: break-all; }

/* Alert improvements */
.alert {
    border-radius: var(--rp-radius-md);
    border: none;
    font-weight: 500;
}
.alert-success { background: var(--rp-success-light); color: #065f46; border-left: 4px solid var(--rp-success); }
.alert-danger { background: var(--rp-danger-light); color: #991b1b; border-left: 4px solid var(--rp-danger); }
.alert-warning { background: var(--rp-warning-light); color: #92400e; border-left: 4px solid var(--rp-warning); }
.alert-info { background: var(--rp-info-light); color: #1e40af; border-left: 4px solid var(--rp-info); }
.alert-secondary { background: var(--rp-bg-alt); color: var(--rp-text-secondary); border-left: 4px solid var(--rp-border); }

/* =============================================
   ADMIN
   ============================================= */
.admin-sidebar {
    width: 250px; min-height: 100vh; position: fixed;
    left: 0; top: 0; overflow-y: auto; z-index: 1000;
    transition: transform 0.3s ease;
    background: var(--rp-header-bg);
}
.admin-content { margin-left: 250px; min-height: 100vh; background: var(--rp-bg); }
.sidebar-link {
    border-radius: var(--rp-radius-sm); margin: 2px 0;
    padding: 0.5rem 0.75rem; transition: all 0.15s ease;
}
.sidebar-link:hover { background-color: rgba(255,255,255,0.08); color: #fff !important; }
.sidebar-link.active { background-color: rgba(255,255,255,0.12); font-weight: 600; }

/* =============================================
   DARK THEME — Bootstrap Overrides
   ============================================= */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--rp-surface-raised);
    border-color: var(--rp-border);
    color: var(--rp-text);
}
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--rp-surface-raised);
    border-color: var(--rp-primary);
    color: var(--rp-text);
    box-shadow: 0 0 0 3px rgba(var(--rp-primary-rgb), 0.2);
}
[data-theme="dark"] .form-control::placeholder { color: var(--rp-text-muted); }

[data-theme="dark"] .table-light { background-color: var(--rp-bg-alt) !important; }
[data-theme="dark"] .table-light th,
[data-theme="dark"] .table-light td { background-color: var(--rp-bg-alt) !important; color: var(--rp-text-muted); }
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(255,255,255,0.02); }

[data-theme="dark"] .nav-tabs { border-bottom-color: var(--rp-border); }
[data-theme="dark"] .nav-tabs .nav-link {
    color: var(--rp-text-secondary);
    border-color: transparent;
}
[data-theme="dark"] .nav-tabs .nav-link:hover {
    border-color: var(--rp-border) var(--rp-border) transparent;
    color: var(--rp-text);
}
[data-theme="dark"] .nav-tabs .nav-link.active {
    background-color: var(--rp-surface);
    border-color: var(--rp-border) var(--rp-border) var(--rp-surface);
    color: var(--rp-text);
}

[data-theme="dark"] .btn-primary {
    background: var(--rp-gradient-primary);
    border: none;
}
[data-theme="dark"] .btn-outline-primary {
    color: var(--rp-primary);
    border-color: var(--rp-primary);
}
[data-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--rp-primary);
    color: #fff;
}
[data-theme="dark"] .btn-outline-secondary {
    color: var(--rp-text-secondary);
    border-color: var(--rp-border);
}
[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--rp-surface-hover);
    border-color: var(--rp-text-muted);
    color: var(--rp-text);
}
[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
[data-theme="dark"] .bg-light { background-color: var(--rp-bg-alt) !important; }
[data-theme="dark"] .text-dark { color: var(--rp-text) !important; }
[data-theme="dark"] .text-muted { color: var(--rp-text-muted) !important; }
[data-theme="dark"] .modal-content {
    background-color: var(--rp-surface);
    border-color: var(--rp-border);
    color: var(--rp-text);
}
[data-theme="dark"] .alert { border-left-width: 4px; border-left-style: solid; }
[data-theme="dark"] .alert-success { background: var(--rp-success-light); color: var(--rp-success); border-left-color: var(--rp-success); }
[data-theme="dark"] .alert-danger { background: var(--rp-danger-light); color: var(--rp-danger); border-left-color: var(--rp-danger); }
[data-theme="dark"] .alert-warning { background: var(--rp-warning-light); color: var(--rp-warning); border-left-color: var(--rp-warning); }
[data-theme="dark"] .alert-info { background: var(--rp-info-light); color: var(--rp-info); border-left-color: var(--rp-info); }
[data-theme="dark"] .alert-secondary { background: var(--rp-bg-alt); color: var(--rp-text-secondary); border-left-color: var(--rp-border); }

[data-theme="dark"] .shadow-sm { box-shadow: var(--rp-shadow-sm) !important; }
[data-theme="dark"] .card.shadow-sm { box-shadow: var(--rp-shadow-sm) !important; }

[data-theme="dark"] .pagination .page-link {
    background-color: var(--rp-surface);
    border-color: var(--rp-border);
    color: var(--rp-text-secondary);
}
[data-theme="dark"] .pagination .page-item.active .page-link {
    background-color: var(--rp-primary);
    border-color: var(--rp-primary);
    color: #fff;
}

[data-theme="dark"] .accordion-item {
    background-color: var(--rp-surface);
    border-color: var(--rp-border);
}
[data-theme="dark"] .accordion-button {
    background-color: var(--rp-surface);
    color: var(--rp-text);
}
[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: var(--rp-primary-light);
    color: var(--rp-primary);
}
[data-theme="dark"] .accordion-body {
    background-color: var(--rp-surface);
    color: var(--rp-text-secondary);
}

[data-theme="dark"] .card-footer { background: var(--rp-bg-alt); }

/* =============================================
   RESPONSIVE
   ============================================= */

/* Mobile < 1200px */
@media (max-width: 1199.98px) {
    .rp-mobile-topbar { display: flex; }
    .rp-desk-header { display: none !important; }
    .rp-desk-nav { display: none !important; }

    .rp-outer {
        display: block;
        min-height: calc(100vh - 56px);
    }

    .rp-sidebar {
        display: flex; flex-direction: column;
        position: fixed; top: 56px; left: -320px;
        width: 300px; height: calc(100vh - 56px);
        background: var(--rp-sidebar-bg);
        z-index: 1030; transition: left 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: none; overflow-y: auto;
        border-radius: 0;
        border: none;
    }
    .rp-sidebar.open {
        left: 0;
        box-shadow: var(--rp-shadow-xl);
    }
    .rp-sidebar-mobilenav { display: flex; }

    .rp-content {
        padding: 1rem;
        background: var(--rp-bg);
        border-radius: 0;
        margin: 0;
    }
}

@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); position: fixed; }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0; }
}

@media (max-width: 767.98px) {
    .rp-item-list { max-height: 220px; }
    .rp-hero h1 { font-size: 1.75rem; }
    .rp-hero-sub { font-size: 0.92rem; }

    .rp-act-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .rp-act-filters { gap: 0.3rem; }
    .rp-status-filter { padding: 0.3rem 0.65rem; font-size: 0.73rem; }

    /* Card layout on mobile */
    .rp-act-table thead { display: none; }
    .rp-act-table, .rp-act-table tbody, .rp-act-table tr, .rp-act-table td {
        display: block; width: 100%;
    }
    .rp-order-row {
        background: var(--rp-surface); border-radius: var(--rp-radius-lg); padding: 0.75rem;
        margin-bottom: 0.75rem; box-shadow: var(--rp-shadow-xs);
        border: 1px solid var(--rp-border);
        border-bottom: none;
    }
    .rp-order-row td { padding: 0.2rem 0; border-bottom: none; }
    .rp-td-id { display: inline; font-size: 0.73rem; }
    .rp-td-date { display: inline; margin-left: 0.5rem; }
    .rp-td-status { text-align: left; margin-top: 0.4rem; }

    .rp-order-panel { width: 100%; right: -100%; }

    .rp-sms-detail-wrap { padding: 0.5rem 0.75rem; }
}

@media print {
    .rp-mobile-topbar, .rp-sidebar, .rp-desk-header, .rp-desk-nav { display: none !important; }
}
