/* ============================================
   MERCHANT PORTAL CSS - 7 PLUSES MERCHANT DASHBOARD
   Modern Dark Theme - Fully Responsive
   Matching Main Site & Dashboard Styles
   ============================================ */

/* --- CSS Variables (Matching site.css) --- */
:root {
    /* Colors */
    --primary: #AECA37;
    --primary-hover: #98b22e;
    --primary-dim: rgba(174, 202, 55, 0.1);
    --secondary: #ffffff;
    
    /* Merchant Accent Color */
    --merchant-accent: #36D4F0;
    --merchant-accent-dim: rgba(54, 212, 240, 0.1);
    
    /* Backgrounds (Matching site.css) */
    --bg-dark: #111111;
    --bg-sidebar: #111111;
    --bg-card: #1f1f1f;
    --bg-card-hover: #2a2a2a;
    --bg-input: #1a1a1a;
    --bg-lighter: #2a2a2a;
    
    /* Text */
    --text-main: #ffffff;
    --text-secondary: #a1a1a1;
    --text-muted: #a1a1a1;
    --text-on-primary: #000000;
    
    /* Status Colors */
    --success: #00c853;
    --warning: #ffc107;
    --danger: #ff5252;
    --info: #2196f3;
    
    /* Borders */
    --border-color: #333;
    --border-light: #444;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(174, 202, 55, 0.15);
    --shadow-merchant: 0 0 20px rgba(54, 212, 240, 0.15);
    
    /* Dimensions */
    --sidebar-width: 260px;
    --sidebar-collapsed: 80px;
    --header-height: 70px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Michroma', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(54, 212, 240, 0.05) 0%, rgba(174, 202, 55, 0.05) 100%);
    min-height: 80px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.sidebar-logo img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(54, 212, 240, 0.3));
    transition: var(--transition-fast);
}

.sidebar-logo:hover img {
    filter: drop-shadow(0 0 12px rgba(54, 212, 240, 0.5));
}

.sidebar-badge {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--merchant-accent);
    background: var(--merchant-accent-dim);
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(54, 212, 240, 0.3);
    box-shadow: 0 0 12px rgba(54, 212, 240, 0.1);
}

.sidebar-close {
    display: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.sidebar-close:hover {
    background: var(--bg-card);
    color: var(--primary);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 0;
    color: var(--text-secondary);
    font-family: 'Michroma', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.nav-item .nav-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.nav-item .nav-link:hover {
    background: var(--bg-card);
    color: var(--text-main);
}

.nav-item .nav-link.active {
    background: var(--primary-dim);
    color: var(--primary);
}

.nav-item .nav-link.active i {
    color: var(--primary);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 0;
    color: var(--text-secondary);
    font-family: 'Michroma', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    width: 100%;
}

.logout-btn:hover {
    background: rgba(255, 82, 82, 0.1);
    color: var(--danger);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin var(--transition-normal);
}

/* ============================================
   TOP HEADER
   ============================================ */

.top-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 30px;
    height: var(--header-height);
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.menu-toggle {
    display: none;
    color: var(--text-main);
    font-size: 1.25rem;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--bg-card);
    color: var(--primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.notification-btn {
    position: relative;
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 0;
    transition: var(--transition-fast);
}

.notification-btn:hover {
    background: var(--bg-card);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--merchant-accent);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.user-role {
    font-size: 0.75rem;
    color: var(--merchant-accent);
}

.user-dropdown {
    position: relative;
}

.user-dropdown .dropdown-toggle {
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.user-dropdown .dropdown-toggle:hover {
    background: var(--bg-card);
    color: var(--primary);
}

.user-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    min-width: 180px;
    background: var(--bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown .dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.user-dropdown .dropdown-menu li a:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}

.user-dropdown .dropdown-menu li a i {
    width: 18px;
}

.user-dropdown .dropdown-menu .divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.user-dropdown .dropdown-menu .logout {
    color: var(--danger);
}

.user-dropdown .dropdown-menu .logout:hover {
    background: rgba(255, 82, 82, 0.1);
}

/* ============================================
   PAGE CONTENT
   ============================================ */

.page-content {
    padding: 30px;
    flex: 1;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-family: 'Michroma', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
}

/* ============================================
   DASHBOARD CARDS
   ============================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 24px;
    transition: var(--transition-normal);
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Stats Card */
.stats-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stats-info h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.stats-value {
    font-family: 'Michroma', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stats-value.success {
    color: var(--success);
}

.stats-value.merchant {
    color: var(--merchant-accent);
}

.stats-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stats-icon {
    width: 56px;
    height: 56px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stats-icon.primary {
    background: var(--primary-dim);
    color: var(--primary);
}

.stats-icon.success {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success);
}

.stats-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.stats-icon.info {
    background: rgba(33, 150, 243, 0.1);
    color: var(--info);
}

.stats-icon.danger {
    background: rgba(255, 82, 82, 0.1);
    color: var(--danger);
}

.stats-icon.merchant {
    background: var(--merchant-accent-dim);
    color: var(--merchant-accent);
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-family: 'Michroma', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.view-link:hover {
    text-decoration: underline;
}

/* ============================================
   DATA TABLE
   ============================================ */

.data-section {
    margin-top: 30px;
}

.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
}

.data-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.data-header h3 {
    font-family: 'Michroma', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-header h3 i {
    color: var(--primary);
}

/* Data Actions & Search Box */
.data-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-box input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px 10px 40px;
    font-size: 0.9rem;
    color: var(--text-main);
    min-width: 250px;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    outline: none;
    border-color: var(--merchant-accent);
    box-shadow: 0 0 0 3px rgba(54, 212, 240, 0.15);
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px 24px;
    text-align: left;
}

.data-table th {
    background: var(--bg-input);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--bg-card-hover);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
}

.status-badge.inactive {
    background: rgba(255, 82, 82, 0.15);
    color: var(--danger);
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Michroma', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: none;
    clip-path: polygon(5% 0, 100% 0, 100% 80%, 95% 100%, 0 100%, 0 20%);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-on-primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    clip-path: none;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-on-primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    clip-path: none;
}

.btn-icon {
    padding: 8px 12px;
    background: var(--bg-lighter);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    clip-path: none;
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #ff3333;
    transform: translateY(-2px);
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 8px;
}

.table-actions .btn-icon {
    padding: 6px 10px;
    font-size: 0.85rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-dark);
}

.form-input-wrapper {
    position: relative;
}

.form-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.form-input-wrapper .form-input {
    padding-left: 46px;
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1a1' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-family: 'Michroma', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    color: var(--text-secondary);
    font-size: 1.25rem;
    padding: 8px;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   SIDEBAR OVERLAY (Mobile)
   ============================================ */

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .user-info {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 0 16px;
    }
    
    .page-content {
        padding: 20px 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 16px;
    }
    
    .data-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .stats-value {
        font-size: 1.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .modal {
        margin: 10px;
    }
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--merchant-accent);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.login-logo img {
    height: 48px;
}

.login-logo span {
    font-family: 'Michroma', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

.login-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--merchant-accent);
    background: var(--merchant-accent-dim);
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.login-header h1 {
    font-family: 'Michroma', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.forgot-link {
    color: var(--primary);
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 16px 40px;
    background: var(--primary);
    border: none;
    color: var(--text-on-primary);
    font-family: 'Michroma', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(5% 0, 100% 0, 100% 80%, 95% 100%, 0 100%, 0 20%);
}

.login-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

.login-divider span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--primary);
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

.back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.back-home:hover {
    color: var(--primary);
}

/* ============================================
   DISCOUNT PERCENTAGE BADGE
   ============================================ */

.discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 4px 12px;
    background: var(--primary-dim);
    color: var(--primary);
    font-family: 'Michroma', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ============================================
   PROFILE CARD
   ============================================ */

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 24px;
    border-left: 4px solid var(--merchant-accent);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--merchant-accent);
    object-fit: cover;
}

.profile-info h2 {
    font-family: 'Michroma', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-item label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-item span {
    font-size: 1rem;
    color: var(--text-main);
}

/* ============================================
   BRANCHES GRID
   ============================================ */

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.branch-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 24px;
    transition: var(--transition-normal);
}

.branch-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.branch-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.branch-name {
    font-family: 'Michroma', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.branch-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.branch-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.branch-detail i {
    width: 18px;
    color: var(--text-muted);
}

/* ============================================
   TABLE RESPONSIVE WRAPPER
   ============================================ */

.table-responsive {
    overflow-x: auto;
}

/* ============================================
   VERIFY CARD/COUPON MODULE
   ============================================ */

/* Hide number input spin buttons */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.module-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--merchant-accent);
    background: var(--merchant-accent-dim);
    padding: 6px 14px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(54, 212, 240, 0.3);
}

.verification-module {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.verification-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 992px) {
    .verification-top-row {
        grid-template-columns: 1fr;
    }
}

.verification-input-section,
.verification-result-section {
    padding: 24px;
}

.section-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label i {
    color: var(--primary);
}

.input-group {
    margin-bottom: 20px;
}

.verification-input {
    font-size: 1.2rem;
    padding: 16px 20px;
    letter-spacing: 2px;
    font-family: 'Michroma', monospace;
}

.verification-input.error {
    border-color: var(--danger);
}

.input-error {
    display: block;
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 20px;
}

.verify-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
}

.verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Status Indicators */
.status-indicators {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.status-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border-radius: 0;
    font-family: 'Michroma', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.status-box.valid {
    background: rgba(0, 200, 83, 0.1);
    border: 2px solid rgba(0, 200, 83, 0.3);
    color: var(--text-muted);
}

.status-box.valid.active {
    background: rgba(0, 200, 83, 0.2);
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.3);
}

.status-box.not-valid {
    background: rgba(255, 82, 82, 0.1);
    border: 2px solid rgba(255, 82, 82, 0.3);
    color: var(--text-muted);
}

.status-box.not-valid.active {
    background: rgba(255, 82, 82, 0.2);
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 0 20px rgba(255, 82, 82, 0.3);
}

.result-message {
    padding: 16px;
    background: var(--bg-input);
    border-radius: 0;
    margin-bottom: 16px;
}

.result-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.result-text.verifying {
    color: var(--info);
}

.result-text.success {
    color: var(--success);
}

.result-text.error {
    color: var(--danger);
}

.result-text.info {
    color: var(--info);
}

.recognized-type {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--primary-dim);
    border-left: 3px solid var(--primary);
    color: var(--primary);
    font-size: 0.9rem;
}

/* Section Header Tag */
.section-header-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tag-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--merchant-accent);
    background: var(--merchant-accent-dim);
    padding: 4px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-label.warning {
    color: var(--warning);
    background: rgba(255, 193, 7, 0.15);
}

.tag-sublabel {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Coupon Entry Section */
.coupon-entry-section {
    padding: 24px;
}

.coupon-entry-section .section-title {
    font-family: 'Michroma', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.coupon-entry-section .section-title i {
    color: var(--primary);
}

.coupon-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .coupon-form .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-input-wrapper .form-input {
    padding-left: 46px;
    padding-right: 100px;
}

.auto-insert-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--info);
    background: rgba(33, 150, 243, 0.15);
    padding: 4px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.currency-label {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.discount-field {
    color: var(--success) !important;
    font-weight: 600;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

/* Remove Coupon Section */
.remove-coupon-section {
    padding: 24px;
    border-left: 4px solid var(--warning);
}

.remove-coupon-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.coupon-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coupon-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.coupon-value {
    font-family: 'Michroma', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
}

.remove-actions {
    display: flex;
    gap: 12px;
}

/* Modal Styles - Verification */
.modal-sm {
    max-width: 420px;
}

.modal-message {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.coupon-preview {
    background: var(--bg-input);
    padding: 16px;
    border-radius: 0;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.preview-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--success);
    color: white;
    border-radius: 0;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    font-size: 1.2rem;
}

/* Input Row Layout */
.input-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.input-row .flex-grow {
    flex: 1;
}

.input-row .verify-btn {
    width: auto;
    min-width: 140px;
    margin-top: 0;
}

/* Remove Coupon Input Section */
.remove-coupon-input-section {
    padding: 24px;
}

/* Modal Header Variants */
.modal-header-danger {
    background: rgba(255, 82, 82, 0.1);
    border-bottom-color: var(--danger);
}

.modal-header-danger .modal-title {
    color: var(--danger);
}

.modal-header-success {
    background: rgba(0, 200, 83, 0.1);
    border-bottom-color: var(--success);
}

.modal-header-success .modal-title {
    color: var(--success);
}

.modal-header-warning {
    background: rgba(255, 193, 7, 0.1);
    border-bottom-color: var(--warning);
}

.modal-header-warning .modal-title {
    color: var(--warning);
}

/* Modal Body Center */
.modal-body.text-center {
    text-align: center;
}

/* Modal Icon */
.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.modal-icon.danger {
    background: rgba(255, 82, 82, 0.15);
    color: var(--danger);
}

.modal-icon.success {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
}

.modal-icon.warning {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

/* Modal Submessage */
.modal-submessage {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Form Grid Modal */
.form-grid-modal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 576px) {
    .form-grid-modal {
        grid-template-columns: 1fr;
    }
}

/* Coupon Preview Simple */
.coupon-preview-simple {
    background: var(--bg-input);
    padding: 16px;
    border-radius: 0;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.coupon-preview-simple .preview-value {
    font-family: 'Michroma', monospace;
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: 1px;
}

/* ============================================
   FILTER & TOTALS STYLES (COUPONS REDEEMED)
   ============================================ */

/* Filter Container */
.filter-container {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-row .form-group {
    margin-bottom: 0;
    min-width: 180px;
}

.filter-actions {
    display: flex;
    gap: 12px;
}

/* Totals Summary */
.totals-summary {
    padding: 24px;
    background: var(--bg-input);
    border-top: 1px solid var(--border-color);
    display: none;
}

.totals-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.total-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.total-icon {
    width: 48px;
    height: 48px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.total-icon.primary {
    background: var(--primary-dim);
    color: var(--primary);
}

.total-icon.success {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success);
}

.total-icon.danger {
    background: rgba(255, 82, 82, 0.1);
    color: var(--danger);
}

.total-icon.info {
    background: rgba(33, 150, 243, 0.1);
    color: var(--info);
}

.total-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.total-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-value {
    font-family: 'Michroma', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.total-value.success {
    color: var(--success);
}

.total-value.danger {
    color: var(--danger);
}

.total-value.info {
    color: var(--info);
}

/* Date Input Styling */
input[type="date"].form-input {
    color-scheme: dark;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-row .form-group {
        min-width: 100%;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
    }

    .totals-row {
        flex-direction: column;
        gap: 20px;
    }
}
