:root {
    /* --primary: #2E7D64;
    --primary-dark: #1B5E4A;
    --primary-light: #E8F5E9; */
    /* Warna Baru */
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #EDE9FE;
    --gradient-start: #7C3AED;
    --gradient-end: #5B21B6;
    /* End Warna Baru */
    --secondary: #FF8C42;
    --gray-bg: #F5F7FA;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --purple: #8B5CF6;
    --purple-light: #EDE9FE;
}

.text-primary{
    color:#7C3AED !important;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-bg);
    color: var(--text-dark);
}

/* Background Gradient untuk Login/Register */
.bg-gradient {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
}

/* App Container */
.app-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--gray-bg);
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px;
}

/* Header Gradient */
.header-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 0 0 30px 30px;
}

/* Content Container */
.content-container {
    background-color: var(--gray-bg);
    border-radius: 30px 30px 0 0;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

/* Menu Card (Kotak-kotak di Home) */
.menu-card {
    background: white;
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.menu-card:active {
    transform: scale(0.98);
    background-color: #f8f9fa;
}

.menu-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.menu-title {
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
}

/* Background icon colors */
.bg-primary-light { background-color: #E8F5E9; }
.bg-warning-light { background-color: #FFF3E0; }
.bg-success-light { background-color: #dfcbff; }
.bg-danger-light { background-color: #FFEBEE; }
.bg-info-light { background-color: #E1F5FE; }
.bg-secondary-light { background-color: #F3E5F5; }
.bg-purple-light { background-color: #EDE9FE; }
.bg-blue-light{ background-color: #E4D9FF;}
.bg-primary{ background-color: #712ddf !important;}

.text-purple { color: var(--purple); }
.text-green{
    color: #009e0c;
}
.text-pink{
    color: #e719bd;
}
.text-blue{
    color: #4100D6;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 20px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 20px 20px 0 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 12px;
    transition: color 0.2s;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item span {
    font-size: 11px;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 0 0 30px 30px;
}

.avatar-circle {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

/* Stat Card (3 menu di profile) */
.stat-card {
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card:active {
    transform: scale(0.98);
    background-color: #f8f9fa;
}

/* Service Card (2x2 grid di profile) */
.service-card {
    background: white;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card:active {
    transform: scale(0.98);
    background-color: #f8f9fa;
}

/* Form Styles */
.form-control, .input-group-text {
    border-radius: 12px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Article Card */
.article-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom shadow */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Toast/Alert */
.alert {
    border-radius: 12px;
    background: #dfcbff !important;
    border-color: #5B21B6;
}


/* Halaman Profile */

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}
.info-label {
    width: 35%;
    font-weight: 600;
    color: #6c757d;
    font-size: 13px;
}
.info-value {
    width: 65%;
    color: #2c3e50;
    font-size: 14px;
}
.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 15px 0;
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}
.edit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
}
.save-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
}
.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
}
.edit-btn:hover, .save-btn:hover {
    background: var(--primary-dark);
}
.cancel-btn:hover {
    background: #5a6268;
}
.form-control-sm-custom {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.paket-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 15px;
    color: white;
    margin-bottom: 20px;
}
.extend-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
}
.password-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px;
    margin-top: 20px;
}
.action-buttons {
    display: flex;
    gap: 10px;
}
/* Avatar dengan edit foto */
.avatar-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.avatar-circle {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    overflow: hidden;
    position: relative;
}
.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-circle i {
    font-size: 3rem;
    color: white;
}
.edit-photo-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.2s;
}
.edit-photo-btn i {
    font-size: 14px;
    color: white;
}
.edit-photo-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}
/* Loading overlay untuk upload foto */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.loading-spinner {
    background: white;
    padding: 20px 30px;
    border-radius: 16px;
    text-align: center;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    background: white;
    padding: 20px 30px;
    border-radius: 16px;
    text-align: center;
    min-width: 150px;
}

/* Informasi */
/* Info Card Hover */
.info-card {
    transition: all 0.2s ease;
}
.info-card:active {
    transform: scale(0.98);
}

/* Badge */
.badge-new {
    background: #f59e0b;
    color: #1F2937;
}
.badge-terbatas {
    background: #ef4444;
    color: white;
}
.badge-aktif {
    background: #3b82f6;
    color: white;
}


/* Langganan */

/* Paket Option */
.paket-option {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px !important;
}
.paket-option:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.paket-option:active {
    transform: scale(0.98);
}
.paket-option.border-primary {
    border-color: var(--primary) !important;
}


.subscription-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.subscription-warning-modal {
    background: white;
    border-radius: 24px;
    padding: 30px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    animation: slideUpModal 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.warning-icon {
    width: 72px;
    height: 72px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.warning-icon i {
    font-size: 32px;
    color: #ef4444;
}

.subscription-warning-modal h5 {
    font-weight: 700;
    margin-bottom: 8px;
    color: #1F2937;
}

.subscription-warning-modal p {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.warning-actions .btn {
    padding: 12px;
    font-weight: 600;
    border-radius: 30px;
}

@keyframes slideUpModal {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}