/* =========================================================
   PRYZI MERCHANT PORTAL
   Complete Application Theme
   ========================================================= */


/* =========================================================
   BRAND VARIABLES
   ========================================================= */

:root {
    --pryzi-navy: #080b35;
    --pryzi-navy-2: #10144d;
    --pryzi-purple: #17135a;
    --pryzi-orange: #ff7a00;
    --pryzi-pink: #ff176f;
    --pryzi-magenta: #d914a8;
    --pryzi-gradient: linear-gradient( 135deg, #ff7a00 0%, #ff3d6e 48%, #d914a8 100% );
    --pryzi-soft-gradient: linear-gradient( 135deg, rgba(255,122,0,.14), rgba(255,23,111,.12), rgba(217,20,168,.12) );
    --white: #ffffff;
    --text: #f8f9ff;
    --muted: #aeb2d0;
    --border: rgba(255,255,255,.10);
    --card: rgba(18,21,73,.88);
    --radius: 18px;
    --radius-small: 12px;
    --shadow: 0 12px 35px rgba(0,0,0,.30);
    --glow: 0 8px 25px rgba(255,23,111,.20);
    --sidebar-width: 232px;
}


/* =========================================================
   GLOBAL RESET
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

* {
    box-sizing: border-box;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: radial-gradient( circle at 85% 10%, rgba(217,20,168,.16), transparent 30% ), radial-gradient( circle at 15% 85%, rgba(255,122,0,.10), transparent 28% ), var(--pryzi-navy);
    color: var(--text);
    line-height: 1.5;
}


/* =========================================================
   GLOBAL HEADINGS
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--white);
}

p {
    color: #e6e8f5;
}

.muted {
    color: var(--muted) !important;
}


/* =========================================================
   PRYZI GRADIENT TEXT
   ========================================================= */

.gradient-text {
    background: var(--pryzi-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* =========================================================
   GLOBAL LINKS
   ========================================================= */

a {
    color: #ff5c91;
    transition: color .2s ease;
}

    a:hover {
        color: #ff8baf;
    }


/* =========================================================
   APPLICATION MAIN AREA
   ========================================================= */

.app-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 36px 38px 40px;
    box-sizing: border-box;
}


/* =========================================================
   GLOBAL PAGE CONTENT
   Use this wrapper on Items / Plan / Billing etc.
   ========================================================= */

.page-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   PRYZI SIDEBAR
   ========================================================= */

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    box-sizing: border-box;
    background: radial-gradient( circle at 20% 0%, rgba(255,61,110,.12), transparent 32% ), linear-gradient( 180deg, #11154f 0%, #0a0d3a 100% );
    border-right: 1px solid rgba(255,255,255,.09);
    padding: 28px 14px;
    box-shadow: 8px 0 35px rgba(0,0,0,.28);
    display: flex;
    flex-direction: column;
}


/* =========================================================
   SIDEBAR LOGO
   ========================================================= */

.sidebar-logo {
    font-size: 29px;
    font-weight: 900;
    letter-spacing: .5px;
    margin: 3px 12px 42px;
    background: var(--pryzi-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


    /* =========================================================
   SIDEBAR NAV LINK
   ========================================================= */

    .sidebar-nav a {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0 16px;
        border-radius: 13px;
        border: 1px solid transparent;
        color: #cfd3ee;
        text-decoration: none;
        font-size: 15px;
        font-weight: 650;
        transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    }


        /* =========================================================
   SIDEBAR HOVER
   ========================================================= */

        .sidebar-nav a:hover {
            color: #ffffff;
            background: rgba(255,255,255,.065);
            border-color: rgba(255,255,255,.07);
            transform: translateX(3px);
        }


        /* =========================================================
   SIDEBAR ACTIVE
   ========================================================= */

        .sidebar-nav a.active {
            color: #ffffff;
            background: var(--pryzi-gradient);
            border-color: rgba(255,255,255,.10);
            box-shadow: 0 8px 24px rgba(255,23,111,.20);
            transform: none;
        }


            /* =========================================================
   ACTIVE LEFT INDICATOR
   ========================================================= */

            .sidebar-nav a.active::before {
                content: "";
                position: absolute;
                left: -14px;
                top: 9px;
                bottom: 9px;
                width: 3px;
                border-radius: 0 4px 4px 0;
                background: #ff7a00;
                box-shadow: 0 0 12px rgba(255,122,0,.65);
            }


/* =========================================================
   MOBILE HEADER
   ========================================================= */

.mobile-header {
    display: none;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-toggle {
    display: none;
}


/* =========================================================
   DASHBOARD PAGE
   ========================================================= */

.dashboard-page {
    width: 100%;
    min-height: auto;
    background: radial-gradient( circle at 80% 0%, rgba(255,23,111,.10), transparent 30% );
}


    /* =========================================================
   DASHBOARD CONTAINER
   ========================================================= */

    .dashboard-page .dashboard-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }


/* =========================================================
   DASHBOARD HEADER
   ========================================================= */

.dashboard-header {
    margin-bottom: 28px;
}

    .dashboard-header h1 {
        margin: 0 0 7px;
        font-size: 32px;
        font-weight: 800;
        letter-spacing: -.5px;
    }

    .dashboard-header p {
        margin: 0;
    }


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.dashboard-page .dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 22px;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    position: relative;
    overflow: hidden;
    background: linear-gradient( 145deg, rgba(25,29,91,.92), rgba(12,15,58,.95) );
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 23px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}


    /* =========================================================
   CARD GLOW
   ========================================================= */

    .card::before {
        content: "";
        position: absolute;
        top: -80px;
        right: -80px;
        width: 180px;
        height: 180px;
        background: radial-gradient( circle, rgba(255,23,111,.10), transparent 70% );
        pointer-events: none;
    }


/* =========================================================
   CARD TITLE
   ========================================================= */

.card-title {
    position: relative;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 18px;
    background: var(--pryzi-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* =========================================================
   PROFILE
   ========================================================= */

.profile-name {
    font-size: 19px;
    margin-bottom: 18px;
}

    .profile-name strong {
        color: white;
    }

.card p {
    line-height: 1.55;
}


/* =========================================================
   STORE CARD
   ========================================================= */

.store-card {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    transition: background .2s ease, border-color .2s ease;
}

    .store-card:hover {
        background: rgba(255,255,255,.075);
        border-color: rgba(255,61,127,.30);
    }

    .store-card:last-child {
        margin-bottom: 0;
    }

.store-name {
    margin-top: 0;
    font-size: 17px;
}

    .store-name strong {
        color: white;
    }


/* =========================================================
   TABLE
   ========================================================= */

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

    .table th {
        text-align: left;
        padding: 13px 14px;
        color: white;
        background: rgba(255,255,255,.065);
        font-size: 13px;
        font-weight: 700;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .table td {
        padding: 14px;
        color: #e5e7f5;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,.065);
    }

    .table tbody tr {
        transition: background .2s ease;
    }

        .table tbody tr:hover {
            background: rgba(255,255,255,.045);
        }

        .table tbody tr:last-child td {
            border-bottom: none;
        }


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    border-radius: 13px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,.10);
}

.alert-error {
    background: rgba(255,50,80,.12);
    color: #ffb7c2;
}


/* =========================================================
   BUTTONS
   ========================================================= */

button,
.btn {
    border: none;
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

    button:hover,
    .btn:hover {
        transform: translateY(-1px);
    }

    .btn-primary,
    button[type="submit"] {
        background: var(--pryzi-gradient);
        color: white;
        box-shadow: 0 8px 22px rgba(255,23,111,.22);
    }

        .btn-primary:hover,
        button[type="submit"]:hover {
            box-shadow: 0 11px 28px rgba(255,23,111,.32);
        }


/* =========================================================
   INPUTS
   ========================================================= */

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);
    color: white;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

    input::placeholder,
    textarea::placeholder {
        color: #8589ae;
    }

    input:focus,
    select:focus,
    textarea:focus {
        background: rgba(255,255,255,.075);
        border-color: #ff3d7f;
        box-shadow: 0 0 0 3px rgba(255,61,127,.12);
    }


    /* =========================================================
   SELECT OPTION
   ========================================================= */

    select option {
        background: #10144d;
        color: white;
    }


/* =========================================================
   AUTH / LOGIN PAGES
   ========================================================= */

.login-page,
.auth-page,
.otp-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: radial-gradient( circle at 20% 20%, rgba(255,122,0,.14), transparent 30% ), radial-gradient( circle at 80% 80%, rgba(217,20,168,.16), transparent 35% ), var(--pryzi-navy);
}


/* =========================================================
   AUTH CARDS
   ========================================================= */

.login-card,
.auth-card,
.otp-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient( 145deg, rgba(24,28,91,.96), rgba(10,13,51,.98) );
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    padding: 34px;
    box-sizing: border-box;
    box-shadow: 0 25px 70px rgba(0,0,0,.40);
}


    /* =========================================================
   AUTH HEADINGS
   ========================================================= */

    .login-card h1,
    .login-card h2,
    .auth-card h1,
    .auth-card h2,
    .otp-card h1,
    .otp-card h2 {
        color: white;
        font-weight: 800;
        margin-top: 0;
    }


/* =========================================================
   FORM GROUPS
   ========================================================= */

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        color: #e9ebfa;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 7px;
    }


/* =========================================================
   CHART
   ========================================================= */

#scanChart {
    max-width: 100%;
}


/* =========================================================
   PAGE TITLES
   ========================================================= */

.page-title {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.page-subtitle {
    margin: 0 0 28px;
    color: var(--muted);
}


/* =========================================================
   GENERIC CONTENT SECTION
   ========================================================= */

.content-section {
    margin-bottom: 24px;
}


/* =========================================================
   PLAN / BILLING / ITEM PAGE CARDS
   ========================================================= */

.page-content > .card:last-child {
    margin-bottom: 0;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    color: #e8eaff;
}

.badge-primary {
    background: rgba(255,61,110,.15);
    color: #ff8bad;
    border-color: rgba(255,61,110,.25);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    padding: 45px 25px;
    text-align: center;
    color: var(--muted);
}

    .empty-state h3 {
        margin: 0 0 8px;
        color: white;
    }


/* =========================================================
   MOBILE HEADER
   ========================================================= */

@media (max-width: 900px) {

    .mobile-header {
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px;
        box-sizing: border-box;
        background: #0b0e3b;
        border-bottom: 1px solid rgba(255,255,255,.08);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
    }


    /* MOBILE LOGO */

    .mobile-brand {
        font-size: 25px;
        font-weight: 900;
        text-decoration: none;
        background: var(--pryzi-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }


    /* MOBILE BURGER */

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 11px;
        background: rgba(255,255,255,.06);
        color: white;
        font-size: 26px;
        padding: 0;
        cursor: pointer;
        transition: background .2s ease, transform .2s ease;
    }

        .mobile-menu-toggle:hover {
            background: rgba(255,255,255,.12);
            transform: none;
        }


    /* =====================================================
       MOBILE SIDEBAR
       ===================================================== */

    .sidebar {
        left: -250px;
        width: 232px;
        transition: left .25s ease;
        z-index: 1200;
    }

    body.nav-open .sidebar {
        left: 0;
    }


    /* =====================================================
       MOBILE MAIN
       ===================================================== */

    .app-main {
        margin-left: 0;
        padding: 82px 18px 30px;
    }


    /* =====================================================
       MOBILE PAGE CONTENT
       ===================================================== */

    .page-content {
        max-width: none;
    }


    /* =====================================================
       MOBILE DASHBOARD
       ===================================================== */

    .dashboard-page {
        min-height: calc(100vh - 64px);
    }

        .dashboard-page .dashboard-container {
            padding: 0;
        }

        .dashboard-page .dashboard-grid {
            grid-template-columns: 1fr;
            gap: 18px;
        }


    /* =====================================================
       MOBILE SIDEBAR LOGO
       ===================================================== */

    .sidebar-logo {
        margin-bottom: 34px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .app-main {
        padding: 78px 14px 24px;
    }


    /* PAGE HEADER */

    .dashboard-header {
        margin-bottom: 22px;
    }

        .dashboard-header h1 {
            font-size: 27px;
        }

    .page-title {
        font-size: 27px;
    }

    .page-subtitle {
        margin-bottom: 22px;
    }


    /* CARDS */

    .card {
        padding: 18px;
        border-radius: 16px;
    }


    /* TABLE */

    .table th,
    .table td {
        padding: 10px 8px;
        font-size: 13px;
    }


    /* AUTH */

    .login-card,
    .auth-card,
    .otp-card {
        padding: 25px 20px;
        border-radius: 18px;
    }


    /* MOBILE SIDEBAR */

    .sidebar {
        width: 232px;
        padding: 24px 14px;
    }
}


/* =========================================================
   EXTRA SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .app-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .mobile-header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .card {
        padding: 16px;
    }
}
/* =========================================================
   PRYZI LOGIN / OTP PAGE
   UI ONLY - NO FUNCTIONALITY CHANGES
   ========================================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    box-sizing: border-box;
    background: radial-gradient( circle at 15% 20%, rgba(255,122,0,.15), transparent 30% ), radial-gradient( circle at 85% 80%, rgba(217,20,168,.18), transparent 35% ), var(--pryzi-navy);
}


    /* =========================================================
   LOGIN CONTENT
   ========================================================= */

    .auth-page > * {
        box-sizing: border-box;
    }

    .auth-page form,
    .auth-page .center,
    .auth-page .alert {
        width: 100%;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }


    /* =========================================================
   LOGIN HEADER
   ========================================================= */

    .auth-page > .center:first-child {
        text-align: center;
        margin-bottom: 26px;
    }

.icon-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0 auto 18px;
    background: none;
    box-shadow: none;
    color: #ffffff;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.auth-page h1 {
    margin: 0 0 8px;
    color: white;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.auth-page .subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   LOGIN FORM CARD
   ========================================================= */

.auth-page form {
    padding: 34px;
    background: linear-gradient( 145deg, rgba(24,28,91,.97), rgba(10,13,51,.98) );
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0,0,0,.40);
}


/* =========================================================
   FORM FIELD
   ========================================================= */

.auth-page .field {
    margin-bottom: 20px;
}

    .auth-page .field label {
        display: block;
        margin-bottom: 8px;
        color: #f1f2fb;
        font-size: 14px;
        font-weight: 700;
    }


/* =========================================================
   PHONE NUMBER
   ========================================================= */

.auth-page .phone-row {
    display: flex;
    gap: 9px;
    width: 100%;
}

.auth-page .prefix {
    width: 62px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: white;
    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   INPUTS
   ========================================================= */

.auth-page input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px;
    background: rgba(255,255,255,.055);
    color: white;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

    .auth-page input::placeholder {
        color: #73779d;
    }

    .auth-page input:focus {
        background: rgba(255,255,255,.075);
        border-color: #ff3d7f;
        box-shadow: 0 0 0 3px rgba(255,61,127,.12);
    }


/* =========================================================
   OTP INPUT
   ========================================================= */

.auth-page #Otp {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 6px;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.auth-page .btn-primary {
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 700;
    background: var(--pryzi-gradient);
    color: white;
    border: none;
    box-shadow: 0 8px 22px rgba(255,23,111,.22);
}

    .auth-page .btn-primary:hover {
        box-shadow: 0 11px 30px rgba(255,23,111,.32);
        transform: translateY(-1px);
    }


/* =========================================================
   RESEND OTP
   ========================================================= */

.auth-page form > .center {
    margin-top: 14px;
}

.auth-page .btn-link {
    border: none;
    background: transparent;
    padding: 4px;
    color: #ff6a99;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}

    .auth-page .btn-link:hover {
        color: #ff9bbb;
        text-decoration: underline;
        transform: none;
    }


/* =========================================================
   ALERTS
   ========================================================= */

.auth-page .alert {
    max-width: 440px;
    margin-bottom: 16px;
    padding: 12px 15px;
    box-sizing: border-box;
    border-radius: 12px;
    font-size: 13px;
}

.auth-page .alert-error {
    background: rgba(255,50,80,.12);
    border: 1px solid rgba(255,50,80,.20);
    color: #ffb7c2;
}

.auth-page .alert-ok {
    background: rgba(50,210,140,.10);
    border: 1px solid rgba(50,210,140,.20);
    color: #8ff0c3;
}


/* =========================================================
   DEBUG OTP
   ========================================================= */

.auth-page .debug-otp {
    margin: -4px 0 16px;
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(255,122,0,.08);
    border: 1px solid rgba(255,122,0,.18);
    color: #ffb36b;
    font-size: 12px;
    text-align: center;
}


/* =========================================================
   MOBILE LOGIN
   ========================================================= */

@media (max-width: 600px) {

    .auth-page {
        padding: 24px 14px;
    }

        .auth-page > .center:first-child {
            margin-bottom: 20px;
        }

    .icon-hero {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 24px;
        margin-bottom: 15px;
    }

    .auth-page h1 {
        font-size: 26px;
    }

    .auth-page form {
        padding: 26px 20px;
        border-radius: 19px;
    }

    .auth-page #Otp {
        font-size: 20px;
        letter-spacing: 5px;
    }
}