/* ============================================
   CRYPTOSPIN - CLEAN MODERN THEME
   ============================================ */

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #F8FAFC;
    color: #1F2937;
    padding-bottom: 80px;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #1F2937;
}

a {
    text-decoration: none;
    color: #2563EB;
}

/* --- Buttons --- */
.btn-primary {
    background: #4F46E5;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    color: #FFFFFF;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-success {
    background: #10B981;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
}

.btn-danger {
    background: #EF4444;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 2px solid #4F46E5;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    color: #4F46E5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: #4F46E5;
    color: #FFFFFF;
}

/* --- Top Bar --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-link {
    position: relative;
}

.notification-icon-wrapper {
    position: relative;
    display: inline-block;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* --- Main Content --- */
.main-content {
    padding: 16px 20px 100px 20px;
    max-width: 480px;
    margin: 0 auto;
}

/* --- Banner Slider --- */
.banner-slider {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 14px;
    background: #E5E7EB;
}

.banner-container {
    display: flex;
    transition: transform 0.5s ease;
    height: auto;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 400/146;
    object-fit: cover;
}

.banner-title {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 4px;
}

.banner-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dots .dot.active {
    background: #4F46E5;
    transform: scale(1.2);
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
    transition: background 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.banner-prev {
    left: 12px;
}

.banner-next {
    right: 12px;
}

/* --- Package Cards --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 12px 0;
}

.section-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.package-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.package-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.package-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.package-name {
    font-weight: 600;
    font-size: 16px;
}

.package-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.package-status.active {
    background: #D1FAE5;
    color: #065F46;
}

.package-status.completed {
    background: #F3F4F6;
    color: #6B7280;
}

.package-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.package-detail {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.package-label {
    color: #6B7280;
}

.package-value {
    font-weight: 500;
}

.package-value.text-success {
    color: #10B981;
}

.package-progress {
    grid-column: 1 / -1;
    height: 4px;
    background: #F3F4F6;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.package-progress .progress-bar {
    height: 100%;
    background: #4F46E5;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6B7280;
}

.empty-state p {
    margin-bottom: 16px;
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 12px 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #9CA3AF;
    transition: all 0.3s ease;
    padding: 4px 12px;
    border-radius: 8px;
    text-decoration: none;
}

.nav-item img {
    width: 24px;
    height: 24px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.nav-item.active {
    color: #4F46E5;
}

.nav-item.active img {
    opacity: 1;
}

.nav-item:hover {
    color: #4F46E5;
}

.nav-item:hover img {
    opacity: 0.8;
}

/* --- Profile Page --- */
.profile-page {
    padding: 16px 20px 100px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.back-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.back-header h5 {
    margin: 0;
    font-size: 18px;
}

.back-btn {
    display: flex;
    align-items: center;
    padding: 4px;
    text-decoration: none;
}

.profile-picture-section {
    text-align: center;
    margin-bottom: 24px;
}

.profile-picture-wrapper {
    position: relative;
    display: inline-block;
}

.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4F46E5;
}

.profile-picture-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #4F46E5;
}

.btn-change-picture {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #4F46E5;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-change-picture:hover {
    background: #4338CA;
    transform: scale(1.1);
}

.profile-username {
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
}

.profile-email {
    font-size: 14px;
    color: #6B7280;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 12px 0;
}

.profile-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #F9FAFB;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.profile-field:hover {
    border-color: #E5E7EB;
}

.field-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.field-content {
    flex: 1;
}

.field-label {
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
}

.field-input {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #1F2937;
    width: 100%;
    padding: 0;
    outline: none;
}

.field-value {
    font-size: 14px;
    font-weight: 600;
}

.field-hint {
    font-size: 12px;
    color: #9CA3AF;
}

.field-edit-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.field-edit-btn:hover {
    opacity: 1;
}

.field-arrow {
    color: #9CA3AF;
    font-size: 16px;
}

.btn-change-password {
    margin-top: 8px;
    width: 100%;
}

.btn-logout {
    width: 100%;
    padding: 14px;
    background: #EF4444;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-logout:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* --- Form Pages --- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #F8FAFC;
}

.auth-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.auth-logo {
    text-align: center;
    margin-bottom: 16px;
}

.auth-logo img {
    height: 40px;
}

.auth-logo span {
    font-size: 22px;
    font-weight: 800;
    color: #1F2937;
    display: block;
    margin-top: 4px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.auth-subtitle {
    text-align: center;
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 24px;
}

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

.auth-form label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.auth-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: #4F46E5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-form .btn-primary {
    width: 100%;
}

.auth-links {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #6B7280;
}

.auth-links a {
    color: #4F46E5;
    font-weight: 500;
}

/* --- Alert Override --- */
.alert {
    border-radius: 12px;
    border: none;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 14px;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .main-content {
        padding: 12px 16px 100px 16px;
    }
    
    .profile-page {
        padding: 12px 16px 100px 16px;
    }
    
    .banner-prev,
    .banner-next {
        width: 28px;
        height: 28px;
        font-size: 14px;
        padding: 4px 8px;
    }
    
    .banner-prev { left: 8px; }
    .banner-next { right: 8px; }
    
    .auth-card {
        padding: 24px 16px;
    }
}

@media (min-width: 768px) {
    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0;
    }
}

@media (max-width: 360px) {
    .banner-slide {
        aspect-ratio: 400/146;
    }
}