/* ========================================
   ROOT VARIABLES & RESET
======================================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a82;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --gradient-main: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #fd79a8 100%);
    --gradient-accent: linear-gradient(135deg, #00cec9 0%, #81ecec 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 48px rgba(108, 92, 231, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========================================
   SCROLLBAR
======================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* ========================================
   HEADER / NAVIGATION
======================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-img {
    height: 36px;
    width: auto;
    border-radius: 8px;
}

.logo-icon {
    font-size: 24px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Profile in nav */
.nav-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 4px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.nav-profile:hover {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.1);
}

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-balance {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
}

.nav-balance i {
    margin-right: 3px;
}

/* Buttons */
.btn-login {
    background: var(--gradient-main);
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
}

.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-admin {
    background: rgba(108, 92, 231, 0.2);
    color: var(--accent-light) !important;
    font-size: 13px !important;
}

.btn-admin:hover {
    background: rgba(108, 92, 231, 0.3) !important;
}

.btn-logout {
    color: #ff6b6b !important;
    font-size: 18px !important;
    padding: 8px 10px !important;
}

.btn-logout:hover {
    background: rgba(255, 107, 107, 0.1) !important;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    padding: 60px 0 80px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15), transparent);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.1), transparent);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.hero .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

/* ========================================
   PROGRAMS SECTION
======================================== */
.programs {
    padding: 60px 0 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Program Card */
.program-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.card-reward {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-light);
}

.card-reward i {
    font-size: 16px;
}

.card-arrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition);
}

.program-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-light);
}

/* ========================================
   DETAIL PAGE
======================================== */
.detail {
    padding: 40px 0 60px;
}

.detail-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.detail-image {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.detail-image .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.detail-image .overlay .reward {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-info {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
}

.detail-info .back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 16px;
    transition: var(--transition);
    align-self: flex-start;
}

.detail-info .back:hover {
    color: var(--accent-light);
}

.detail-info h1 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    margin-bottom: 8px;
}

.detail-info .reward-big {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.detail-info .desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.detail-info .full-desc {
    margin-bottom: 20px;
}

.detail-info .full-desc h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.detail-info .full-desc p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.detail-info .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    align-self: flex-start;
}

.detail-info .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.detail-info .hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ========================================
   PROFILE PAGE
======================================== */
.profile {
    padding: 40px 0 60px;
}

.profile h1 {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 28px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
}

/* Avatar Card */
.profile-avatar {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
}

.avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.avatar-wrap:hover .avatar-upload {
    opacity: 1;
}

.avatar-stats {
    text-align: left;
    margin-top: 16px;
}

.avatar-stats .stat {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-stats .stat:last-child {
    border-bottom: none;
}

.avatar-stats .stat .label {
    color: var(--text-secondary);
    font-size: 14px;
}

.avatar-stats .stat .value {
    font-weight: 600;
}

.avatar-stats .stat .value.balance {
    color: var(--accent-light);
    font-size: 18px;
}

.avatar-stats .stat .value.active { color: #00cec9; }
.avatar-stats .stat .value.blocked { color: #ff6b6b; }

/* Profile Info */
.profile-info {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.profile-info .form-group {
    margin-bottom: 16px;
}

.profile-info .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.profile-info .form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.profile-info .form-group input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.profile-info .btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.profile-info .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* Deals in profile */
.profile-deals {
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

.profile-deals h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.deal-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.deal-item .deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.deal-item .deal-program {
    display: flex;
    align-items: center;
    gap: 12px;
}

.deal-item .deal-thumb {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-card);
    flex-shrink: 0;
}

.deal-item .deal-name {
    font-weight: 600;
    font-size: 14px;
}

.deal-item .deal-reward {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-light);
}

.deal-item .deal-status {
    text-align: right;
}

.deal-item .deal-date {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.deal-item .proof-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.deal-item .proof-form input[type="file"] {
    flex: 1;
    min-width: 140px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
}

.deal-item .proof-form .btn-sm {
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.deal-item .proof-form .btn-sm:hover {
    transform: scale(1.05);
}

.deal-item .deal-proof {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(0, 206, 201, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.deal-item .deal-proof a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
}

.deal-item .deal-comment {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(253, 203, 110, 0.1);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.deal-item .deal-comment strong {
    color: #fdcb6e;
}

/* ========================================
   TRANSACTIONS PAGE
======================================== */
.transactions {
    padding: 40px 0 60px;
}

.transactions h1 {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 28px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.transactions-summary {
    margin-bottom: 24px;
}

.transactions-summary .card {
    display: inline-block;
    padding: 20px 32px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.transactions-summary .card .label {
    font-size: 14px;
    color: var(--text-secondary);
}

.transactions-summary .card .value {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.transactions-list {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.transactions-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.transactions-list th,
.transactions-list td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.transactions-list th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.02);
}

.transactions-list .positive { color: #00cec9; font-weight: 600; }
.transactions-list .negative { color: #ff6b6b; font-weight: 600; }

/* ========================================
   BADGES
======================================== */
.badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-created { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); }
.badge-processing { background: rgba(108, 92, 231, 0.2); color: var(--accent-light); }
.badge-checking { background: rgba(253, 203, 110, 0.2); color: #fdcb6e; }
.badge-success { background: rgba(0, 206, 201, 0.2); color: #00cec9; }
.badge-canceled { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }

.badge-referral { background: rgba(108, 92, 231, 0.2); color: var(--accent-light); }
.badge-withdraw { background: rgba(253, 203, 110, 0.2); color: #fdcb6e; }
.badge-bonus { background: rgba(0, 206, 201, 0.2); color: #00cec9; }

.badge-pending { background: rgba(253, 203, 110, 0.2); color: #fdcb6e; }
.badge-failed { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }

/* ========================================
   MODAL
======================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    max-width: 400px;
    width: 100%;
    padding: 36px 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content .close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
    line-height: 1;
}

.modal-content .close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-content h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-content .form-group {
    margin-bottom: 14px;
}

.modal-content input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.modal-content input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.modal-content .btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.modal-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.modal-content .switch {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-content .switch a {
    color: var(--accent-light);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.modal-content .switch a:hover {
    text-decoration: underline;
}

/* ========================================
   FOOTER
======================================== */
footer {
    margin-top: auto;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   ALERTS
======================================== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 500;
}

.alert-success {
    background: rgba(0, 206, 201, 0.1);
    color: #00cec9;
    border: 1px solid rgba(0, 206, 201, 0.15);
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.15);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .detail-image {
        min-height: 300px;
    }
    .detail-image img {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 4px;
    }
    
    .nav-links a {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .nav-user-info {
        display: none;
    }
    
    .nav-profile {
        padding: 4px 8px 4px 4px;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-avatar {
        padding: 24px;
    }
    
    .profile-info {
        padding: 24px;
    }
    
    .detail-info {
        padding: 24px;
    }
    
    .detail-image {
        min-height: 220px;
    }
    .detail-image img {
        min-height: 220px;
    }
    
    .transactions-list {
        overflow-x: auto;
    }
    .transactions-list table {
        font-size: 13px;
        min-width: 500px;
    }
    .transactions-list th,
    .transactions-list td {
        padding: 10px 14px;
    }
    
    .deal-item .deal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .deal-item .deal-status {
        text-align: left;
        width: 100%;
    }
    .deal-item .proof-form {
        flex-direction: column;
    }
    .deal-item .proof-form input[type="file"] {
        width: 100%;
        min-width: unset;
    }
    
    .modal-content {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 26px;
    }
    
    .hero .btn-primary {
        padding: 12px 28px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .card-image {
        height: 160px;
    }
    
    .detail-info .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .avatar-wrap {
        width: 110px;
        height: 110px;
    }
    
    .transactions-summary .card {
        padding: 16px 20px;
        width: 100%;
    }
    .transactions-summary .card .value {
        font-size: 22px;
    }
}