/* ============================================
   GPMLOGIN System - Amber Dark High-Tech UI
   Inspired by modern premium dashboard design
   ============================================ */

/* ===== CSS Custom Properties (Design Tokens) ===== */
:root {
    /* Colors — Ultra-dark with amber accents */
    --bg-primary: #030303;
    --bg-secondary: rgba(13, 13, 15, 0.65);
    --bg-card: rgba(13, 13, 15, 0.65);
    --bg-card-hover: #141417;
    --bg-input: rgba(255, 255, 255, 0.03);

    /* Text — Brighter Zinc palette for clarity */
    --text-primary: #ffffff;
    --text-secondary: #e4e4e7;
    --text-tertiary: #a1a1aa;

    /* Gradients — Amber-based */
    --primary-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --secondary-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --success-gradient: linear-gradient(135deg, #10B981 0%, #34D399 100%);

    /* Accent Colors — All amber/yellow for consistency */
    --accent-primary: #f59e0b;
    --accent-secondary: #fbbf24;
    --accent-danger: #f87171;
    --accent-success: #34D399;
    --accent-warning: #f59e0b;
    --accent-teal: #fbbf24;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius — Larger, more rounded */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Shadows — Amber glow */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.1), 0 0 40px rgba(245, 158, 11, 0.05);
    --shadow-glow-strong: 0 0 25px rgba(245, 158, 11, 0.2), 0 0 50px rgba(245, 158, 11, 0.1), 0 4px 20px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --sidebar-width: 320px;
    --header-height: 64px;

    /* Card borders — Ultra subtle white */
    --border-card: 1px solid rgba(255, 255, 255, 0.04);
    --border-card-hover: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fef3c7;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* ===== Background Effects ===== */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.8;
    animation: orbFloat 25s ease-in-out infinite;
}

.orb-1 {
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 60%);
    top: 50%;
    left: 50%;
    margin-top: -600px;
    margin-left: -600px;
    animation-delay: 0s;
}

.orb-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 60%);
    top: 30%;
    right: -20%;
    animation-delay: -8s;
    animation-duration: 28s;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.12), transparent 60%);
    bottom: -15%;
    left: 15%;
    animation-delay: -16s;
    animation-duration: 24s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(25px, -35px) scale(1.03);
    }

    50% {
        transform: translate(-15px, 15px) scale(0.97);
    }

    75% {
        transform: translate(10px, 25px) scale(1.01);
    }
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    transition: transform var(--transition-slow);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
    height: 56px;
    background: var(--bg-secondary);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    border: var(--border-card);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.06);
    flex-shrink: 0;
}

.sidebar-logo .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
}

.sidebar-logo span {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.sidebar-nav {
    flex: 1;
    background: var(--bg-secondary);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    border: var(--border-card);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.06);
    overflow-y: auto;
}

.sidebar-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: var(--spacing-sm);
}

.sidebar-section-title {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.sidebar-item-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* Upgrade Card in Sidebar */
.sidebar-upgrade {
    background: var(--bg-card-hover);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: var(--border-card);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.sidebar-upgrade::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 128px;
    height: 64px;
    background: rgba(245, 158, 11, 0.2);
    filter: blur(30px);
    border-radius: 50%;
    pointer-events: none;
}

.sidebar-upgrade h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.3px;
    position: relative;
}

.sidebar-upgrade p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
    position: relative;
}

.sidebar-upgrade .upgrade-btn {
    width: 100%;
    padding: 10px 20px;
    border-radius: 9999px;
    background: linear-gradient(to right, #27272a, #18181b);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
    position: relative;
}

.sidebar-upgrade .upgrade-btn:hover {
    background: linear-gradient(to right, #3f3f46, #27272a);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

/* ===== Main Content Wrapper ===== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 24px 24px 24px 0;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 24px;
    z-index: 50;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    border: var(--border-card);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.06);
}

/* Masking bar to hide scrolling content above the sticky header */
.header::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    width: calc(100% + 24px);
    height: 80px;
    /* Covers the 24px gap + 56px header exactly */
    background: var(--bg-primary);
    z-index: -1;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.current-plan-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.current-plan-status .plan-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* User Profile Pill */
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border-radius: 9999px;
    padding: 6px;
    padding-right: 12px;
    border: var(--border-card);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.user-profile:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.user-profile .notification-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    background: transparent;
    border: none;
    cursor: pointer;
}

.user-profile .notification-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0 12px;
}

.user-name {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1;
}

.user-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-success);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

/* User Plan Badges in Table */
.plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.03);
}

.plan-badge.basic {
    color: #9ca3af;
    background: rgba(156, 163, 175, 0.08);
}

.plan-badge.pro {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.plan-badge.unlimited {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* ===== Logout Switch Hover ===== */
.logout-switch {
    display: block;
    text-decoration: none;
    position: relative;
    width: 40px;
    height: 40px;
    transition: width 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: var(--radius-full);
}

.logout-switch:hover {
    width: 100px;
}

.logout-switch-track {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 99px;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    box-shadow: inset 0 0 0 rgba(239, 68, 68, 0);
    border: 1px solid transparent;
}

.logout-switch:hover .logout-switch-track {
    width: 100px;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.logout-switch .logout-icon {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%) scale(0.6);
    color: #ef4444;
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.logout-switch:hover .logout-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.1rem;
    color: #d4d4d8;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    right: 0;
    top: -1px;
    transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    overflow: hidden;
}

.logout-switch:hover .user-avatar {
    transform: translateX(-60px);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}

/* ===== Container ===== */
.container {
    padding: 0;
    max-width: 1400px;
}

/* ===== Glass Card ===== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: var(--border-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.06);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.06);
}

/* ===== Section Title ===== */
.section-title {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.title-icon {
    font-size: 1.05rem;
}

/* ===== Section Header ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.section-header .section-title {
    margin-bottom: 0;
}

/* ===== Metrics Grid ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.metric-card {
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.metric-card:hover {
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.metric-card:hover::after {
    opacity: 1;
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.metric-title {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-tertiary);
    text-transform: none;
    letter-spacing: 0;
}

.metric-icon {
    font-size: 1.2rem;
    opacity: 0.5;
}

.metric-value {
    font-size: 2rem;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.metric-badge {
    font-size: 0.78rem;
    font-weight: 600;
}

.metric-positive {
    color: var(--accent-success);
    background: rgba(52, 211, 153, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.metric-negative {
    color: var(--accent-danger);
    background: rgba(248, 113, 113, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* ===== Chart Section ===== */
.chart-section {
    margin-bottom: var(--spacing-xl);
}

.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
}

/* ===== Activity Section ===== */
.activity-section {
    margin-bottom: var(--spacing-xl);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 14px var(--spacing-md);
    border-radius: 0;
    transition: background var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.01);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.activity-icon-success {
    background: rgba(52, 211, 153, 0.1);
    color: var(--accent-success);
}

.activity-icon-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-key {
    color: var(--accent-primary);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.82rem;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: 2px;
}

.activity-manager {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.activity-time {
    font-size: 0.73rem;
    color: var(--text-tertiary);
}

.activity-amount {
    font-weight: 700;
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.activity-amount.positive {
    color: var(--accent-success);
}

.activity-amount.negative {
    color: var(--accent-danger);
}

.no-activity {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-tertiary);
    font-size: 0.88rem;
}

/* ===== Activation Section & Form ===== */
.activation-section {
    margin-bottom: var(--spacing-xl);
}

.activation-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all var(--transition-fast);
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    /* Custom colored chevron icon */
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.form-group select:hover {
    border-color: rgba(245, 158, 11, 0.3);
    background-color: rgba(255, 255, 255, 0.04);
}

.form-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-group select option {
    background: #18181b;
    /* Solid dark background for dropdown items */
    color: var(--text-primary);
    padding: 16px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== Modern Radio Cards ===== */
.radio-card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.radio-card {
    position: relative;
    cursor: pointer;
    display: block;
    user-select: none;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.radio-card:hover .radio-content {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.radio-content i {
    color: var(--text-tertiary);
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
}

.radio-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.radio-desc {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.3;
}

/* Checked States */
.radio-card input[type="radio"]:checked~.radio-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.radio-card input[type="radio"]:checked~.radio-content .radio-title {
    color: var(--text-primary);
}

.radio-card input[type="radio"]:focus-visible~.radio-content {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Specific Plan Colors */
.plan-basic input[type="radio"]:checked~.radio-content {
    border-color: rgba(156, 163, 175, 0.5);
    background: rgba(156, 163, 175, 0.05);
    box-shadow: 0 0 15px rgba(156, 163, 175, 0.1);
}

.plan-basic input[type="radio"]:checked~.radio-content i {
    color: #9ca3af;
}

.plan-pro input[type="radio"]:checked~.radio-content {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.12);
}

.plan-pro input[type="radio"]:checked~.radio-content i {
    color: #f59e0b;
}

.plan-unlimited input[type="radio"]:checked~.radio-content {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.08);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.12);
}

.plan-unlimited input[type="radio"]:checked~.radio-content i {
    color: #ef4444;
}

/* Roles */
.role-card input[name="userRole"]:checked~.radio-content {
    border-color: var(--accent-primary);
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.12);
}

.role-card input[name="userRole"]:checked~.radio-content i {
    color: var(--accent-primary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3), 0 0 8px rgba(245, 158, 11, 0.15);
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.45), 0 0 15px rgba(245, 158, 11, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== Search Box ===== */
.search-box {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0 var(--spacing-md);
    transition: all var(--transition-fast);
    color: var(--text-tertiary);
    min-width: 260px;
}

.search-box:focus-within {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 10px var(--spacing-sm);
    width: 100%;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

/* ===== Data Table ===== */
.management-section {
    margin-bottom: var(--spacing-xl);
}

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1rem;
}

.data-table thead th {
    padding: 16px var(--spacing-md);
    text-align: left;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-tertiary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.data-table tbody td {
    padding: 16px var(--spacing-md);
    color: var(--text-tertiary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.key-cell {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    letter-spacing: -0.3px;
    word-break: break-all;
    max-width: 200px;
}

/* ===== Status Badge ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
}

.status-active {
    background: rgba(52, 211, 153, 0.1);
    color: var(--accent-success);
    border: none;
}

.status-expired {
    background: rgba(248, 113, 113, 0.08);
    color: var(--accent-danger);
    border: none;
}

.status-inactive {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-tertiary);
    border: none;
}

/* ===== Action Buttons ===== */
.action-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.action-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0.6;
}

.action-btn:hover {
    opacity: 1;
    transform: scale(1.08);
}

.action-btn.download {
    background: rgba(245, 158, 11, 0.12);
}

.action-btn.download:hover {
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.action-btn.edit {
    background: rgba(245, 158, 11, 0.12);
}

.action-btn.edit:hover {
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.action-btn.delete {
    background: rgba(248, 113, 113, 0.12);
}

.action-btn.delete:hover {
    background: rgba(248, 113, 113, 0.2);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.2);
}

.action-btn.info {
    background: rgba(245, 158, 11, 0.08);
}

.action-btn.info:hover {
    background: rgba(245, 158, 11, 0.15);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.modal-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.15);
    color: var(--accent-danger);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
        padding: var(--spacing-md);
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .header-content {
        padding: 0 var(--spacing-md);
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        min-width: 100%;
    }

    .user-name {
        display: none;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: var(--spacing-md);
        border-radius: var(--radius-lg);
    }

    .metric-card {
        padding: var(--spacing-md);
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.88rem;
    }

    .chart-container {
        height: 220px;
    }
}

/* ===== Utility Classes ===== */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

/* ===== Loading Skeleton ===== */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

/* ===== Print Styles ===== */
@media print {

    .sidebar,
    .header,
    .background-effects,
    .action-buttons,
    .search-box,
    .form-actions {
        display: none !important;
    }

    .main-wrapper {
        margin-left: 0;
    }

    body {
        background: #fff;
        color: #333;
    }

    .glass-card {
        border: 1px solid #ddd;
        background: #fff;
    }
}

/* ===== Remove Number Input Spin Buttons ===== */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}