:root {
    --brand-primary: #6366f1;
    --brand-dark: #4f46e5;
    --brand-secondary: #8b5cf6;
    --brand-accent: #10b981;
    --brand-purple: #8b5cf6;
    --brand-blue: #3b82f6;
    --brand-orange: #f97316;
    --brand-teal: #14b8a6;
    --brand-pink: #ec4899;
    --brand-indigo: #6366f1;
    --brand-yellow: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --background-light: #f0f9ff;
    --background-card: #ffffff;
    --border-color: #e0f2fe;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(99, 102, 241, 0.15);
    --shadow-lg: 0 10px 30px rgba(99, 102, 241, 0.2);
    --shadow-xl: 0 20px 50px rgba(99, 102, 241, 0.25);
    --success-color: #10b981;
    --failed-color: #ef4444;
    --pending-color: #f59e0b;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-xxl: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--background-light);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Removed background shape to fix layout issues */

.main-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-bottom: 100px;
    padding-top: 20px;
}

/* Header */
.page-header {
    background: transparent;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1000;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-circle {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: var(--brand-primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .main {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
}

.logo-text .sub {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.action-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Content */
.content-wrapper {
    padding: 24px;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 4px solid var(--brand-primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card.text-center {
    text-align: center;
    padding: 45px 25px;
}

.card.text-center .fas {
    font-size: 68px;
    margin-bottom: 24px;
    color: #d1d5db;
}

.card.text-center p {
    margin-bottom: 18px;
}

.card.text-center .text-gray-500 {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 20px;
}

.card.text-center .text-gray-400 {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 28px !important;
}

.inline-block.bg-red-600 {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: white;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    border: none;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.inline-block.bg-red-600:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45);
}

.inline-block.bg-red-600:active {
    transform: translateY(-1px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-dark));
    border-radius: 20px 20px 0 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 4px solid var(--brand-primary);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-dark));
    border-radius: 20px 20px 0 0;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Buttons Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: perspective(1px) translateZ(0);
}

.action-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    z-index: 1;
}

.action-icon:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

.action-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.2px;
}

/* Banner Card */
.banner-card {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    color: white;
    transition: all 0.3s ease;
    border: none;
    transform: perspective(1px) translateZ(0);
}

.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 45px rgba(99, 102, 241, 0.35);
}

.banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    opacity: 0.15;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    font-size: 15px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.banner-button:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Section Title */
.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.2px;
    position: relative;
    padding-left: 20px;
}

.section-title i {
    color: var(--brand-primary);
    background: rgba(99, 102, 241, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

/* Plan Card */
.plan-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.9);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 24px;
    position: relative;
    border-top: 4px solid var(--brand-primary);
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-dark));
}

.plan-header {
    padding: 24px 20px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(99, 102, 241, 0.03));
    border-bottom: 1px solid rgba(99, 102, 241, 0.12);
    text-align: center;
    position: relative;
}

.plan-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.plan-duration {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
}

.plan-image {
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 15px;
}

.plan-image-box {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: transform 0.4s ease;
    transform: perspective(1px) translateZ(0);
}

.plan-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.plan-card:hover .plan-image-box img {
    transform: scale(1.12);
}

.plan-details {
    padding: 22px;
    border-bottom: 1px solid #f1f5f9;
}

.plan-income {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    align-items: center;
}

.plan-income:last-child {
    margin-bottom: 0;
}

.income-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.income-value {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 16px;
}

.plan-price {
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(99, 102, 241, 0.02));
}

.price-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
}

.price-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: -0.5px;
}

/* Plan Button */
.plan-button {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    margin-top: 10px;
    transform: perspective(1px) translateZ(0);
}

.plan-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.plan-button:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45);
}

.plan-button:hover::before {
    left: 100%;
}

.plan-button:active {
    transform: translateY(-1px);
}

/* Team Level Card */
.level-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 4px solid var(--brand-primary);
}

.level-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.level-header {
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.level-header.level-1 {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
}

.level-header.level-2 {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
}

.level-header.level-3 {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.05));
}

.level-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 16px;
}

.level-title.level-1 { color: #dc2626; }
.level-title.level-2 { color: #ea580c; }
.level-title.level-3 { color: #0284c7; }

.level-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.level-badge.level-1 {
    background: rgba(220, 38, 38, 0.18);
    color: #dc2626;
}

.level-badge.level-2 {
    background: rgba(234, 88, 12, 0.18);
    color: #ea580c;
}

.level-badge.level-3 {
    background: rgba(2, 132, 199, 0.18);
    color: #0284c7;
}

.level-stats {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    border-top: 1px solid #f1f5f9;
}

.level-stat {
    text-align: center;
}

.level-stat-value {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 6px;
    word-break: break-word;
}

.level-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
    letter-spacing: 0.2px;
}

.form-input, .form-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    outline: none;
}

.form-input:focus, .form-select:focus {
    border-color: var(--brand-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--text-light);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transform: perspective(1px) translateZ(0);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Transaction Item */
.transaction-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}

.transaction-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: perspective(1px) translateZ(0);
}

.icon-deposit {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.icon-withdrawal {
    background: linear-gradient(135deg, var(--failed-color), #dc2626);
}

.icon-bonus {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.icon-commission {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.transaction-details {
    flex-grow: 1;
}

.transaction-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 16px;
}

.transaction-date {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.days-remaining {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 13px;
}

.days-expired {
    font-weight: 700;
    color: var(--failed-color);
    font-size: 13px;
}

.transaction-amount {
    font-weight: 800;
    font-size: 18px;
    text-align: right;
    min-width: 80px;
}

.amount-positive {
    color: var(--success-color);
}

.amount-negative {
    color: var(--failed-color);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-success { 
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.status-pending { 
    background: rgba(245, 158, 11, 0.15);
    color: var(--pending-color);
}

.status-failed { 
    background: rgba(239, 68, 68, 0.15);
    color: var(--failed-color);
}

.status-warning { 
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.status-info { 
    background: rgba(59, 130, 246, 0.15);
    color: var(--info-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    height: 76px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    z-index: 1000;
    border-radius: var(--radius-xxl) var(--radius-xxl) 0 0;
    padding: 0 10px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 12px;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
    border-radius: var(--radius-md);
    margin: 0 4px;
    transform: perspective(1px) translateZ(0);
}

.nav-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--brand-primary);
    transform: translateY(-3px);
}

.nav-item.active {
    color: var(--brand-primary);
    background: rgba(99, 102, 241, 0.12);
    transform: translateY(-3px);
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-item.active span {
    transform: scale(1.05);
}

.active-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-dark));
    border-radius: 4px 4px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item.active .active-indicator {
    opacity: 1;
}

/* Alert */
.alert {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

.alert i {
    font-size: 20px;
}

.alert-danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #14532d;
}

.alert-warning {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

/* New Feature: Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-bar.success {
    background: linear-gradient(90deg, var(--success-color), #059669);
}

.progress-bar.primary {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-dark));
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 600;
}

/* New Feature: Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.notification-badge.large {
    width: 30px;
    height: 30px;
    font-size: 14px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 12px;
    border-radius: 10px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-dark));
}

.progress-bar.success {
    background: linear-gradient(90deg, var(--success-color), #059669);
}

.progress-bar.info {
    background: linear-gradient(90deg, var(--brand-blue), #2563eb);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 600;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.notification-panel.active {
    right: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.notification-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.notification-item {
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    background: #f8fafc;
    border-left: 4px solid var(--brand-primary);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.05);
}

.notification-item.success {
    border-left-color: var(--success-color);
}

.notification-item.info {
    border-left-color: var(--brand-blue);
}

.notification-item.warning {
    border-left-color: var(--warning-color);
}

.notification-item .notification-content {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.notification-item .notification-time {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
}

.toast {
    background: white;
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--brand-primary);
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--failed-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.info {
    border-left-color: var(--brand-blue);
}

.toast-icon {
    font-size: 20px;
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--failed-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast.info .toast-icon {
    color: var(--brand-blue);
}

.toast-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
}
