/* ============================================
   SAFE AREA SUPPORT FOR ALL DEVICES
   Works on: iPhone 6-15, Android phones, tablets
   Handles: Notch, Dynamic Island, Status Bar, Home Indicator
   ============================================ */
:root {
    /* Safe area fallbacks (for older devices without notch) */
    --sat: env(safe-area-inset-top, 0px);
    --sar: env(safe-area-inset-right, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F7F8FA;
    color: #1a1a1a;
    overflow-x: hidden;
    /* Safe area padding for body */
    padding-top: var(--sat);
    padding-right: var(--sar);
    padding-bottom: var(--sab);
    padding-left: var(--sal);
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #F7F8FA;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    /* Safe area: Header height + safe area top (for notch/Dynamic Island) */
    padding-top: calc(60px + var(--sat));
    /* Safe area: Footer height + safe area bottom (for home indicator) */
    padding-bottom: calc(70px + var(--sab));
    /* Pull to refresh styling */
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.screen.active {
    display: block;
}

/* Pull-to-Refresh Spinner */
.pull-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 208, 156, 0.2);
    border-top-color: #00d09c;
    border-radius: 50%;
}

.pull-spinner.spinning {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#pullIndicator {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Header (Fixed Top) */
.app-header {
    position: fixed;
    /* Safe area: Position below notch/Dynamic Island/status bar */
    top: var(--sat);
    left: 50%;
    transform: translateX(-50%);
    max-width: 450px;
    width: 100%;
    height: 60px;
    background: #1877F2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Safe area: Padding for notch sides (iPhone X landscape) */
    padding: 0 max(20px, var(--sal)) 0 max(20px, var(--sar));
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(24, 119, 242, 0.15);
}

.app-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-header .app-logo {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #1877F2;
}

.app-header .app-name {
    font-size: 20px;
    font-weight: 700;
    color: #050505;
    letter-spacing: 0.5px;
}

.app-header .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-header .header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #050505;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-header .header-icon:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.25);
}

/* CARD 1: Header Section (Deprecated - using app-header now) */
.header-section {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F7F8FA;
    display: none;
}

.profile-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #050505;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.greeting-text {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.header-icons {
    display: flex;
    gap: 16px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    background: rgba(26, 26, 26, 0.06);
    border-radius: 50%;
    border: none;
    color: #1a1a1a;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:active {
    transform: scale(0.95);
    background: rgba(26, 26, 26, 0.12);
}

/* CARD 2: Main Balance Card - Facebook Blue */
.balance-card {
    margin: 16px 16px 16px 16px;
    background: linear-gradient(135deg, #1877F2 0%, #1664D8 100%);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 
        0 8px 24px rgba(24, 119, 242, 0.25),
        0 2px 8px rgba(24, 119, 242, 0.1);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.balance-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.balance-left {
    flex: 1;
}

.balance-label {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #050505;
    font-weight: 500;
}

.eye-icon {
    cursor: pointer;
    font-size: 16px;
}

.balance-amount {
    font-size: 34px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #050505;
    letter-spacing: -0.5px;
}

.balance-right {
    display: flex;
    align-items: flex-end;
}

.add-money-btn {
    background: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    color: #1877F2;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.add-money-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.business-amount {
    font-size: 18px;
    font-weight: 600;
    color: #050505;
}

/* CARD 3: Transfer Actions - Facebook Blue */
.transfer-card {
    margin: 0 16px 12px 16px;
    background: linear-gradient(135deg, #1877F2 0%, #1664D8 100%);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    box-shadow: 
        0 8px 24px rgba(24, 119, 242, 0.25),
        0 2px 8px rgba(24, 119, 242, 0.1);
}

.transfer-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.transfer-action:active {
    transform: scale(0.95);
}

.action-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.transfer-action:active .action-icon-box {
    transform: scale(0.95);
}

.action-label {
    font-size: 13px;
    color: white;
    font-weight: 500;
}

/* CARD 4: Features Grid - Facebook Blue */
.features-card {
    margin: 0 16px 12px 16px;
    background: linear-gradient(135deg, #1877F2 0%, #1664D8 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        0 8px 24px rgba(24, 119, 242, 0.25),
        0 2px 8px rgba(24, 119, 242, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.feature-item:active {
    transform: scale(0.92);
}

.feature-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.feature-item:active .feature-icon-box {
    transform: scale(0.95);
}

.feature-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3545 100%);
    color: #050505;
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255,71,87,0.4);
}

.feature-label {
    font-size: 12px;
    color: white;
    text-align: center;
    font-weight: 500;
}

/* CARD 5: Promo Banner - Facebook Blue */
.promo-card {
    margin: 0 16px 16px 16px;
    background: linear-gradient(135deg, #1877F2 0%, #1664D8 100%);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 
        0 8px 24px rgba(24, 119, 242, 0.25),
        0 2px 8px rgba(24, 119, 242, 0.1);
}

.promo-icon {
    width: 50px;
    height: 50px;
    font-size: 32px;
    flex-shrink: 0;
}

.promo-content {
    flex: 1;
}

.promo-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.promo-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.promo-btn {
    background: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    color: #1877F2;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.promo-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
    padding: 10px 20px;
    border-radius: 12px;
    color: #050505;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* Transactions Section */
.transactions-section {
    margin: 0 20px 16px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.view-all {
    font-size: 14px;
    color: #00d09c;
    cursor: pointer;
}

.transaction-item {
    background: #1a1f2e;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.txn-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.txn-icon.credit {
    background: rgba(0, 208, 156, 0.2);
}

.txn-icon.debit {
    background: rgba(255, 71, 87, 0.2);
}

.txn-details {
    flex: 1;
}

.txn-desc {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.txn-date {
    font-size: 13px;
    color: #666;
}

.txn-amount {
    font-size: 16px;
    font-weight: 600;
}

.txn-amount.credit {
    color: #00d09c;
}

.txn-amount.debit {
    color: #ff4757;
}

/* Bottom Navigation - Premium Footer (Smaller with Lottie icons) */
.bottom-nav {
    position: fixed;
    /* Safe area: Position above home indicator */
    bottom: var(--sab);
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid rgba(24, 119, 242, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* Safe area: Add padding for bottom inset */
    padding: 6px 0 max(6px, var(--sab));
    height: 56px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    z-index: 999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    color: #8E8E93;
    padding: 4px 10px;
    position: relative;
    transition: all 0.2s ease;
    min-width: 56px;
}

.nav-item.active {
    color: #1877F2;
}

.nav-item.active i {
    transform: scale(1.05);
}

.nav-item i {
    font-size: 22px;
    transition: transform 0.2s ease;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: #FF3B30;
    color: white;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

/* More Services Screen */
.more-header {
    position: fixed;
    /* Safe area: Position below notch/Dynamic Island */
    top: var(--sat);
    left: 50%;
    transform: translateX(-50%);
    max-width: 450px;
    width: 100%;
    background: #1877F2;
    /* Safe area: Add padding for notch sides */
    padding: 16px max(20px, var(--sal)) 16px max(20px, var(--sar));
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(24, 119, 242, 0.15);
}

.back-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.back-btn:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.95);
}

.screen-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.more-content {
    /* Safe area: Header height (76px) + safe area top for notch */
    padding: calc(76px + var(--sat)) 20px calc(16px + var(--sab));
    background: #F7F8FA;
    min-height: 100vh;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.category-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 12px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.category-item:active {
    transform: scale(0.95);
}

.category-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(24, 119, 242, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #1877F2;
    border: 1px solid rgba(24, 119, 242, 0.15);
    transition: all 0.2s ease;
}

.category-item:active .category-icon-box {
    background: rgba(24, 119, 242, 0.15);
    transform: scale(0.95);
}

.category-label {
    font-size: 12px;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
}

/* Form Screens */
.form-container {
    padding: 20px;
}

/* Transfer Form Card */
.transfer-form-card {
    background: #1a1f2e;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #050505;
}

.transfer-input {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #2a2f3d;
    color: #050505;
    font-size: 16px;
    margin-bottom: 20px;
}

.transfer-input::placeholder {
    color: #666;
}

.transfer-input:focus {
    outline: none;
    border-bottom-color: #00d09c;
}

.bank-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #2a2f3d;
    cursor: pointer;
    margin-bottom: 20px;
}

.bank-dropdown {
    background: #252b3d;
    border-radius: 12px;
    margin: -10px 0 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.bank-option {
    padding: 16px;
    border-bottom: 1px solid #1a1f2e;
    cursor: pointer;
    color: #050505;
}

.bank-option:hover {
    background: #2a2f3d;
}

.bank-option:last-child {
    border-bottom: none;
}

.resolved-name {
    background: rgba(0, 208, 156, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #050505;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.next-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00d09c, #01b88d);
    border: none;
    border-radius: 50px;
    color: #050505;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.next-btn:active {
    transform: scale(0.98);
}

/* Recents Card */
.recents-card {
    background: #1a1f2e;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
}

.recents-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #252b3d;
    padding-bottom: 12px;
}

.tab {
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: #00d09c;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00d09c;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #252b3d;
    cursor: pointer;
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-item:active {
    background: rgba(255,255,255,0.05);
}

.recent-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #252b3d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #050505;
    flex-shrink: 0;
}

.recent-details {
    flex: 1;
}

.recent-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #050505;
}

.recent-account {
    font-size: 13px;
    color: #666;
}

/* Transfer Amount Screen */
.recipient-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #1a1f2e;
    border-radius: 20px;
    margin-bottom: 16px;
}

.recipient-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #050505;
    flex-shrink: 0;
}

.recipient-info {
    flex: 1;
}

.recipient-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #050505;
}

.recipient-details {
    font-size: 13px;
    color: #666;
}

.amount-card,
.remark-card,
.pin-card {
    background: #1a1f2e;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
}

.amount-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #00d09c;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.currency-symbol {
    font-size: 28px;
    font-weight: 600;
    color: #050505;
}

.amount-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #050505;
    font-size: 28px;
    font-weight: 400;
    outline: none;
}

.amount-input::placeholder {
    color: #444;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-amount-btn {
    background: #252b3d;
    border: none;
    padding: 14px;
    border-radius: 12px;
    color: #050505;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.quick-amount-btn:active {
    background: #2a2f3d;
    transform: scale(0.95);
}

.remark-input,
.pin-input {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #2a2f3d;
    color: #050505;
    font-size: 16px;
}

.remark-input::placeholder,
.pin-input::placeholder {
    color: #666;
}

.remark-input:focus,
.pin-input:focus {
    outline: none;
    border-bottom-color: #00d09c;
}

.confirm-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00d09c, #01b88d);
    border: none;
    border-radius: 50px;
    color: #050505;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.confirm-btn:active {
    transform: scale(0.98);
}

/* Old form styles (for withdraw/history) */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #aaa;
}

.form-input {
    width: 100%;
    padding: 16px;
    background: #1a1f2e;
    border: 2px solid #252b3d;
    border-radius: 12px;
    color: #050505;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: #00d09c;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00d09c, #01b88d);
    border: none;
    border-radius: 12px;
    color: #050505;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #252b3d;
    border-top: 3px solid #00d09c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ==================== AIRTIME & DATA SCREENS ==================== */

/* Ad Banner */
.ad-banner {
    background: linear-gradient(135deg, #00d09c, #01b88d);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.ad-content {
    position: relative;
    z-index: 1;
}

.ad-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #050505;
}

.ad-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

/* Phone Number Card */
.phone-number-card {
    background: #1a1f2e;
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.network-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    background: #252b3d;
    border-radius: 10px;
}

.network-logo {
    font-size: 24px;
}

.network-dropdown {
    position: absolute;
    background: #252b3d;
    border-radius: 12px;
    margin-top: 8px;
    width: 200px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.network-option {
    padding: 14px 16px;
    border-bottom: 1px solid #1a1f2e;
    cursor: pointer;
    color: #050505;
    display: flex;
    align-items: center;
    gap: 8px;
}

.network-option:hover {
    background: #2a2f3d;
}

.network-option:last-child {
    border-bottom: none;
}

.phone-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #050505;
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.phone-input::placeholder {
    color: #666;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #00d09c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Quick Dial Banner */
.quick-dial-banner {
    background: linear-gradient(135deg, #00d09c, #01b88d);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    color: #050505;
    font-size: 13px;
    text-align: center;
}

.quick-dial-banner strong {
    font-weight: 700;
}

/* Top Up Card */
.topup-card {
    background: #1a1f2e;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 80px;
}

.topup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.topup-option {
    background: #252b3d;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s;
}

.topup-option:active {
    transform: scale(0.95);
    background: #2a2f3d;
}

.cashback-label {
    font-size: 11px;
    color: #00d09c;
    margin-bottom: 8px;
    font-weight: 500;
}

.topup-amount {
    font-size: 20px;
    font-weight: 700;
    color: #050505;
}

/* Custom Amount Wrapper */
.custom-amount-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #252b3d;
    border-radius: 50px;
    padding: 4px 4px 4px 20px;
}

.custom-amount-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #050505;
    font-size: 16px;
    outline: none;
    padding: 12px 0;
}

.custom-amount-input::placeholder {
    color: #666;
}

.pay-btn {
    background: linear-gradient(135deg, #00d09c, #01b88d);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    color: #050505;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.pay-btn:active {
    transform: scale(0.95);
}

/* Service Card */
.service-card {
    background: #1a1f2e;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.service-card:active {
    background: #1f2433;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: #00d09c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.service-info {
    flex: 1;
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #050505;
}

.service-subtitle {
    font-size: 13px;
    color: #666;
}

.service-arrow {
    font-size: 20px;
    color: #666;
}

/* Events Card */
.events-card {
    background: #1a1f2e;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #252b3d;
    border-radius: 16px;
    cursor: pointer;
    margin-bottom: 12px;
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-item:active {
    background: #2a2f3d;
}

.event-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #050505;
}

.event-subtitle {
    font-size: 12px;
    color: #666;
}

.event-arrow {
    font-size: 20px;
    color: #666;
}

/* Data Plans List */
.data-plans-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #252b3d;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    font-size: 16px;
}

.view-icon.active {
    background: #00d09c;
    color: #050505;
}

.plan-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.plan-tab {
    padding: 8px 16px;
    background: #252b3d;
    border-radius: 20px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.plan-tab.active {
    background: #00d09c;
    color: #050505;
}

.data-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    overflow: visible;
}

.data-plans-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
}

.data-plan-card {
    background: #252b3d;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.data-plan-card:active {
    transform: scale(0.95);
    background: #2a2f3d;
}

.plan-data-size {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #050505;
}

.plan-validity {
    font-size: 10px;
    color: #888;
    margin-bottom: 4px;
}

.plan-price {
    font-size: 14px;
    font-weight: 600;
    color: #00d09c;
    margin-bottom: 4px;
}

.plan-extras {
    font-size: 9px;
    color: #ffb800;
    background: rgba(255, 184, 0, 0.1);
    padding: 4px 8px;
    border-radius: 10px;
}

.data-plan-item {
    background: #252b3d;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-plan-item:active {
    background: #2a2f3d;
    transform: scale(0.98);
}

.data-plan-info {
    flex: 1;
}

.data-plan-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #050505;
}

.data-plan-validity {
    font-size: 13px;
    color: #666;
}

.data-plan-price {
    font-size: 18px;
    font-weight: 700;
    color: #00d09c;
}

/* ============================================
   ONBOARDING SCREENS
   ============================================ */

.onboarding-container {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-step {
    display: none;
    width: 100%;
}

.onboarding-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.onboarding-card {
    background: #1a1f2e;
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.onboarding-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #050505;
    text-align: center;
}

.onboarding-content {
    margin-bottom: 24px;
    line-height: 1.6;
}

.onboarding-content p {
    margin-bottom: 16px;
    color: #ccc;
    font-size: 14px;
}

.onboarding-content p strong {
    color: #050505;
}

.terms-link {
    color: #00d09c;
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

.terms-agreement {
    font-weight: 600;
    color: white !important;
    text-align: center;
    margin-top: 20px !important;
}

.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
}

.form-group input,
.form-group select {
    background: #0a0e1a;
    border: 1px solid #2a2f3d;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 16px;
    color: #050505;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d09c;
    background: #12161f;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-group select option {
    background: #1a1f2e;
    color: #050505;
}

.helper-text {
    font-size: 12px;
    color: #666;
    margin-top: -4px;
}

.primary-btn {
    width: 100%;
    background: linear-gradient(135deg, #00d09c, #00b386);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #050505;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 156, 0.3);
}

.primary-btn:active {
    transform: scale(0.98);
}

.primary-btn:disabled {
    background: #2a2f3d;
    color: #666;
    cursor: not-allowed;
}

.error-message {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: #ff3b30;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-in;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #1a1f2e;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

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

.modal-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #050505;
    margin-bottom: 12px;
}

.modal-message {
    font-size: 15px;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-btn {
    width: 100%;
    background: linear-gradient(135deg, #00d09c, #00b386);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #050505;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 156, 0.3);
}

.modal-btn:active {
    transform: scale(0.98);
}

/* ============================================
   PROFILE SCREEN
   ============================================ */

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #1a1f2e;
}

.profile-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #050505;
}

.back-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #050505;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-spacer {
    width: 40px;
}

.profile-avatar-card {
    background: #1a1f2e;
    border-radius: 16px;
    padding: 30px 20px 20px;
    margin: 16px 20px;
}

.profile-photo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #2a2f3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-initials {
    font-size: 48px;
    font-weight: 700;
    color: #050505;
}

.camera-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #1a1f2e;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-name {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #050505;
    margin-bottom: 20px;
}

.account-info-row {
    background: #0a0e1a;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 13px;
    color: #888;
}

.info-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: #050505;
}

.copy-icon {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.tier-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #0a0e1a;
    border-radius: 12px;
    cursor: pointer;
}

.tier-label {
    font-size: 15px;
    color: #ccc;
    flex-shrink: 0;
}

.tier-badges {
    display: flex;
    gap: 8px;
    flex: 1;
}

.tier-badge {
    background: #2a2f3d;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.tier-badge.merchant {
    background: rgba(255, 149, 0, 0.2);
    color: #ff9500;
}

.tier-badge.tier {
    background: rgba(0, 208, 156, 0.2);
    color: #00d09c;
}

.profile-details-card {
    background: #1a1f2e;
    border-radius: 16px;
    margin: 0 20px 20px;
    overflow: hidden;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #0a0e1a;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.clickable {
    cursor: pointer;
}

.detail-row.clickable:active {
    background: #12161f;
}

.detail-label {
    font-size: 15px;
    color: #ccc;
    flex-shrink: 0;
}

.detail-value {
    font-size: 15px;
    color: #050505;
    text-align: right;
    flex: 1;
    margin: 0 12px;
}

.detail-value.placeholder {
    color: #666;
}

.arrow-right {
    font-size: 18px;
    color: #666;
    flex-shrink: 0;
}

/* ==================== RECEIPT MODAL ==================== */
.receipt-modal {
    background: linear-gradient(135deg, #1a1f3a 0%, #0a0e1a 100%);
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    margin: auto;
    padding: 32px 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.15);
}

.receipt-header {
    text-align: center;
    margin-bottom: 32px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4aa 0%, #00a67e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #050505;
    margin: 0 auto 16px;
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.receipt-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.success-subtitle {
    font-size: 14px;
    color: #999;
}

.receipt-details {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.receipt-amount {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: #00d4aa;
}

.receipt-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.receipt-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.receipt-row.highlight {
    background: rgba(0, 212, 170, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.receipt-label {
    font-size: 14px;
    color: #999;
}

.receipt-value {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    text-align: right;
}

.receipt-row.highlight .receipt-value {
    color: #00d4aa;
    font-size: 16px;
}

.receipt-done-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00d4aa 0%, #00a67e 100%);
    border: none;
    border-radius: 12px;
    color: #050505;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.receipt-done-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.receipt-share-btn {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #050505;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.receipt-share-btn:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.08);
}

/* PIN Modal Styles - OPay Style */
.pin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Confirmation Step (Full Screen) */
.confirmation-fullscreen {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    animation: modalSlideUp 0.3s ease;
}

/* PIN Entry Step (Bottom Half) */
.pin-modal-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow: hidden;
    animation: slideUpFromBottom 0.3s ease;
}

.pin-modal-close {
    position: absolute;
    top: 10px;
    left: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #050505;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* PIN Boxes (like OPay) */
.pin-boxes {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 16px 0 12px 0;
    height: 45px;
}

.pin-box {
    width: 45px;
    height: 45px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #050505;
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.pin-box.filled {
    border-color: #00d09c;
    background: #1a3a32;
}

.pin-box.filled::after {
    content: '|';
    color: #00d09c;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Keyboard Card */
.pin-keyboard-card {
    background: #0f0f0f;
    padding: 10px 14px 14px 14px;
    border-radius: 20px 20px 0 0;
    margin-top: 10px;
}

.pin-keypad-opay {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 2px;
}

.pin-key-opay {
    aspect-ratio: 1;
    border: none;
    border-radius: 8px;
    background: #2a2a2a;
    font-size: 20px;
    font-weight: 600;
    color: #050505;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    max-height: 56px;
}

.pin-key-opay:active {
    transform: scale(0.95);
    background: #3a3a3a;
}

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

@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Add Money Screen - Account Cards */
.account-card {
    background: #1a1f2e;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.bank-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-header-text {
    flex: 1;
}

.bank-name {
    font-size: 16px;
    font-weight: 600;
    color: #050505;
    margin-bottom: 4px;
}

.account-type {
    font-size: 12px;
    color: #999;
}

.account-number-display {
    background: rgba(0, 208, 156, 0.1);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.account-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.account-number-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.account-number-value span {
    font-size: 20px;
    font-weight: 700;
    color: #050505;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.copy-btn-inline {
    background: rgba(0, 208, 156, 0.2);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    color: #00d09c;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-btn-inline:active {
    transform: scale(0.95);
}

.account-name-display {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.account-name-value {
    font-size: 15px;
    font-weight: 600;
    color: #050505;
}

.instant-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 208, 156, 0.15);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #050505;
}


/* ============================================
   COMING SOON SCREENS (Food, Market, Shopping)
   ============================================ */
.coming-soon-card {
    text-align: center;
    padding: 60px 30px;
    margin: 20px;
    background: #1a1a1a;
    border-radius: 16px;
}

.coming-soon-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.coming-soon-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #00d09c;
}

.coming-soon-card p {
    font-size: 15px;
    color: #999;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ============================================
   FEEDS SCREEN (Instagram-like)
   ============================================ */
.feeds-header {
    position: fixed;
    /* Safe area: Position below notch/Dynamic Island */
    top: var(--sat);
    left: 50%;
    transform: translateX(-50%);
    max-width: 450px;
    width: 100%;
    /* Safe area: Add padding for notch sides */
    padding: 12px max(16px, var(--sal)) 12px max(16px, var(--sar));
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a0e1a;
    border-bottom: 1px solid #1a1a1a;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.feeds-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d09c, #01b88d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feeds-actions {
    display: flex;
    gap: 12px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Stories Section */
.stories-container {
    display: flex;
    gap: 12px;
    padding: 16px;
    /* Safe area: Header height (64px) + safe area top for notch */
    padding-top: calc(64px + var(--sat));
    overflow-x: auto;
    background: #0a0e1a;
    border-bottom: 1px solid #1a1a1a;
    scrollbar-width: none;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
}

.story-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d09c, #01b88d);
    padding: 3px;
    margin-bottom: 6px;
    position: relative;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0a0e1a;
}

.add-story .story-avatar {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #0a0e1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #00d09c;
}

.story-name {
    font-size: 12px;
    color: #999;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Feed Posts */
/* Feed Posts - Instagram-Grade Premium Quality */
.feed-posts {
    padding-bottom: 20px;
}

.feed-post {
    background: #0a0e1a;
    margin-bottom: 12px;
    border-bottom: 1px solid #1a1a1a;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: none;
}

.feed-post:active {
    transform: none;
}

.post-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00d09c;
}

.post-user-info {
    flex: 1;
}

.post-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.post-timestamp {
    font-size: 12px;
    color: #999;
}

.sponsored-badge {
    font-size: 11px;
    color: #999;
    margin-left: 6px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    backdrop-filter: blur(8px);
}

.post-menu-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}

.post-content {
    padding: 0 16px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
}

.post-image {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    display: block;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-image img[loading="lazy"] {
    filter: blur(20px);
    transition: filter 0.5s ease;
}

.post-image img.loaded {
    filter: blur(0);
}

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

.post-cta-btn {
    margin: 12px 16px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00d09c, #01b88d);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    width: calc(100% - 32px);
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(0, 208, 156, 0.3);
    transition: all 0.3s ease;
}

.post-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 156, 0.5);
}

.post-cta-btn:active {
    transform: translateY(0);
}

.post-stats {
    padding: 8px 16px;
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-stats span {
    cursor: pointer;
    transition: color 0.2s ease;
}

.post-stats span:hover {
    color: #00d09c;
}

.post-actions {
    padding: 4px 8px 12px;
    display: flex;
    justify-content: space-around;
    gap: 4px;
}

.post-action-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #e0e0e0;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    flex: 1;
}

.post-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.post-action-btn:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
}

.post-action-btn.liked {
    color: #ff3b5c;
}

.post-action-btn.liked .action-icon {
    animation: heartPulse 0.3s ease;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.action-icon {
    font-size: 24px;
    transition: transform 0.2s ease;
}

.action-label {
    font-size: 12px;
    font-weight: 500;
}

/* Meta Ad Post */
.meta-ad-post {
    background: #0f0f0f;
}

.ad-label {
    padding: 6px 16px;
    font-size: 11px;
    color: #666;
    background: #1a1a1a;
}

.ad-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ad-content {
    padding: 12px 16px;
}

.ad-image {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    display: block;
}

.ad-text {
    margin-bottom: 12px;
}

.ad-headline {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #050505;
}

.ad-description {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

.ad-cta-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #00d09c;
    color: #050505;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* FAB Create Post Button */
.fab-create-post {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d09c, #01b88d);
    border: none;
    font-size: 24px;
    color: #050505;
    box-shadow: 0 4px 12px rgba(0, 208, 156, 0.4);
    cursor: pointer;
    z-index: 99;
}

/* Create Post Modal */
.create-post-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 450px;
    margin: 0 auto;
    background: #0a0e1a;
    border-radius: 16px 16px 0 0;
    z-index: 1001;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.create-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #1a1a1a;
}

.create-post-header h3 {
    font-size: 18px;
    color: #050505;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.post-btn {
    background: #00d09c;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    color: #050505;
    font-weight: 600;
    cursor: pointer;
}

.create-post-body {
    padding: 16px;
}

.post-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.post-user-name {
    font-weight: 600;
}

.post-textarea {
    width: 100%;
    min-height: 120px;
    background: none;
    border: none;
    color: #050505;
    font-size: 16px;
    resize: none;
    outline: none;
    font-family: inherit;
}

.post-textarea::placeholder {
    color: #666;
}

.post-media-preview {
    margin-top: 12px;
}

.create-post-footer {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #1a1a1a;
}

.media-btn {
    flex: 1;
    padding: 10px;
    background: #1a1a1a;
    border: none;
    border-radius: 8px;
    color: #050505;
    font-size: 14px;
    cursor: pointer;
}

/* Image Viewer Modal */
.image-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-overlay {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    padding: 20px;
}

.close-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #050505;
    font-size: 24px;
    cursor: pointer;
}

.image-viewer-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

/* ============================================
   PHASE 1: Core IG Features - Follow, Comments, Video, Profile
   ============================================ */

/* Follow Button */
.follow-btn-mini {
    padding: 6px 16px;
    background: #00d09c;
    border: none;
    border-radius: 6px;
    color: #050505;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.follow-btn-mini.following {
    background: #1a1a1a;
    color: #999;
}

.follow-btn-large {
    width: 100%;
    padding: 12px;
    background: #00d09c;
    border: none;
    border-radius: 8px;
    color: #050505;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 16px 0;
}

.follow-btn-large.following {
    background: #1a1a1a;
    color: #050505;
    border: 1px solid #333;
}

/* Save Button Styles */
.post-action-btn.saved {
    color: #00d09c;
}

/* Video Post Styles */
.post-video {
    position: relative;
    width: 100%;
    background: #000;
    cursor: pointer;
}

.post-video video {
    width: 100%;
    display: block;
    max-height: 500px;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.play-btn {
    width: 64px;
    height: 64px;
    background: #050505;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
}

.mute-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
}

/* Comments Modal */
.comments-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.comments-container {
    width: 100%;
    max-width: 450px;
    max-height: 80vh;
    background: #0a0e1a;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #1a1a1a;
}

.comments-header h3 {
    margin: 0;
    color: #050505;
    font-size: 18px;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-user {
    font-size: 14px;
    font-weight: 600;
    color: #050505;
    margin-bottom: 4px;
}

.comment-text {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.4;
    margin-bottom: 6px;
}

.comment-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-time {
    font-size: 12px;
    color: #666;
}

.comment-like-btn,
.comment-reply-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

.no-comments {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-size: 14px;
}

.comment-input-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #1a1a1a;
    background: #0a0e1a;
}

.comment-input {
    flex: 1;
    padding: 10px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    color: #050505;
    font-size: 14px;
    outline: none;
}

.comment-input::placeholder {
    color: #666;
}

.comment-post-btn {
    padding: 10px 20px;
    background: #00d09c;
    border: none;
    border-radius: 20px;
    color: #050505;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.comment-post-btn:active {
    background: #01a07d;
}

/* Instagram-Style Comments Modal */
.ig-comments-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ig-comments-modal.active {
    opacity: 1;
}

.ig-comments-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.ig-comments-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    max-height: 85vh;
    background: linear-gradient(135deg, #0a0e1a 0%, #11151f 100%);
    border-radius: 28px 28px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ig-comments-modal.active .ig-comments-container {
    transform: translateY(0);
}

/* Comments Header */
.ig-comments-post-preview {
    flex-shrink: 0;
}

.ig-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px;
}

.ig-comments-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.ig-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ig-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ig-close-btn:active {
    transform: scale(0.95);
}

/* Post Thumbnail Preview */
.ig-post-thumb {
    max-height: 200px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: max-height 0.3s ease;
}

.ig-post-thumb.collapsed {
    max-height: 0;
}

.ig-post-thumb img {
    width: 100%;
    display: block;
}

.expand-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.3s ease;
}

/* Comments List */
.ig-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.ig-comments-list::-webkit-scrollbar {
    width: 4px;
}

.ig-comments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.ig-no-comments {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.ig-no-comments i {
    margin-bottom: 16px;
}

.ig-no-comments p {
    margin: 4px 0;
    font-size: 15px;
}

/* Comment Item */
.ig-comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease;
}

.ig-comment-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ig-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid rgba(0, 208, 156, 0.3);
}

.ig-comment-content {
    flex: 1;
    min-width: 0;
}

.ig-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ig-comment-user {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.ig-comment-time {
    font-size: 12px;
    color: #999;
}

.ig-comment-text {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.ig-comment-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.ig-comment-action {
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.ig-comment-action:hover {
    color: #00d09c;
}

.ig-comment-action i {
    font-size: 16px;
}

.ig-comment-like-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
}

.ig-comment-like-btn:active {
    transform: scale(1.2);
}

.ig-comment-like-btn i {
    font-size: 20px;
}

/* Fixed Bottom Input */
.ig-comment-input-container {
    flex-shrink: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.ig-comment-input-box {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 8px 12px;
    position: relative;
}

.ig-comment-input {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 15px;
    outline: none;
}

.ig-comment-input::placeholder {
    color: #666;
}

.ig-emoji-btn,
.ig-send-btn {
    background: none;
    border: none;
    color: #999;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ig-emoji-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ig-send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ig-send-btn.active {
    color: #00d09c;
}

.ig-send-btn.active:active {
    transform: scale(1.1);
    animation: sendPulse 0.3s ease;
}

@keyframes sendPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Emoji Picker */
.ig-emoji-picker {
    position: absolute;
    bottom: 50px;
    right: 12px;
    background: rgba(17, 21, 31, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: popIn 0.2s ease;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ig-emoji-picker button {
    background: none;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ig-emoji-picker button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

.ig-emoji-picker button:active {
    transform: scale(0.95);
}

/* Comment Slide In Animation */
@keyframes slideInComment {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Profile Modal */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0e1a;
    z-index: 10002;
    overflow-y: auto;
}

.profile-view-container {
    max-width: 450px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.profile-view-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #0a0e1a;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 100;
}

.profile-view-header h3 {
    flex: 1;
    text-align: center;
    margin: 0;
    color: #050505;
    font-size: 16px;
}

.profile-view-info {
    padding: 24px;
    text-align: center;
}

.profile-view-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 3px solid #00d09c;
}

.profile-view-info h2 {
    font-size: 22px;
    margin: 0 0 8px 0;
    color: #050505;
}

.profile-view-bio {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 16px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #050505;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.profile-view-posts {
    padding: 24px 16px;
}

.profile-view-posts h4 {
    font-size: 16px;
    color: #050505;
    margin-bottom: 16px;
}

.profile-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.profile-post-item {
    aspect-ratio: 1;
    border-radius: 4px;
    cursor: pointer;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    color: #050505;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 10003;
    opacity: 0;
    transition: all 0.3s;
    max-width: 80%;
    text-align: center;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* ============================================
   PHASE 2: VENDOR FEATURES CSS
   ============================================ */

/* Product Tags on Images */
.post-image {
    position: relative;
    overflow: visible;
}

.product-tag {
    position: absolute;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-dot {
    width: 24px;
    height: 24px;
    background: #050505;
    border: 2px solid #8e44ad;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.tag-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #8e44ad;
    border-radius: 50%;
}

.tag-label {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0, 0, 0, 0.9);
    color: #050505;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    transition: transform 0.2s ease;
    opacity: 0;
}

.product-tag:hover .tag-label,
.product-tag.show-label .tag-label {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.tag-name {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
}

.tag-price {
    font-size: 12px;
    color: #8e44ad;
}

/* Promo Badge */
.promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #050505;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    z-index: 10;
}

/* Promo Details */
.promo-details {
    padding: 12px;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(155, 89, 182, 0.05));
    border-radius: 8px;
    margin: 12px 0;
    font-size: 13px;
    color: #8e44ad;
    font-weight: 500;
}

/* CTA Button Updates */
.post-cta-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: #050505;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.post-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(142, 68, 173, 0.4);
}

/* Product Detail Modal */
.product-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-detail-modal.active {
    opacity: 1;
}

.product-detail-card {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.product-detail-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.product-detail-info {
    padding: 20px;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #8e44ad;
}

.product-original-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #95a5a6;
}

.product-discount {
    background: #e74c3c;
    color: #050505;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-vendor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 16px;
}

.product-vendor .vendor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.vendor-info .vendor-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.vendor-info .vendor-type {
    font-size: 13px;
    color: #7f8c8d;
}

.product-promo {
    margin-bottom: 16px;
}

.promo-code-label {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.promo-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(155, 89, 182, 0.05));
    border: 2px dashed #8e44ad;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.promo-code-box:active {
    transform: scale(0.98);
}

.promo-code-text {
    font-size: 18px;
    font-weight: 700;
    color: #8e44ad;
    letter-spacing: 2px;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.view-catalog-btn {
    flex: 1;
    padding: 14px;
    background: white;
    color: #8e44ad;
    border: 2px solid #8e44ad;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-catalog-btn:hover {
    background: #8e44ad;
    color: #050505;
}

.order-now-btn {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: #050505;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(142, 68, 173, 0.4);
}

/* Vendor Catalog Modal */
.vendor-catalog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vendor-catalog-modal.active {
    opacity: 1;
}

.vendor-catalog-card {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.catalog-vendor-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-vendor-info .vendor-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.catalog-vendor-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.catalog-vendor-info p {
    font-size: 13px;
    color: #7f8c8d;
}

.catalog-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 20px;
}

.catalog-product-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.catalog-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.catalog-product-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.catalog-product-info {
    padding: 12px;
}

.catalog-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #8e44ad;
}

/* Vendor Post Type Styling */
.feed-post.vendor_post,
.feed-post.vendor_promo {
    border-left: 3px solid #8e44ad;
}

/* ============================================
   END PHASE 2: VENDOR FEATURES CSS
   ============================================ */
/* ============================================
   FOOD ORDERING SYSTEM CSS
   ============================================ */

/* Food Header */
.food-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.food-header .header-content {
    flex: 1;
    margin-left: 12px;
}

.food-header h2 {
    font-size: 20px;
    margin: 0 0 4px 0;
}

.location-text {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: #050505;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Search Bar */
.food-search-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: white;
}

.food-search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
}

.filter-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: white;
    font-size: 18px;
    cursor: pointer;
}

/* Quick Filters */
.food-filters {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    background: white;
}

.filter-chip {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip.active {
    background: #8e44ad;
    color: #050505;
    border-color: #8e44ad;
}

/* Restaurants Container */
.restaurants-container {
    padding: 16px;
    background: #f5f5f5;
}

/* Restaurant Card */
.restaurant-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.restaurant-card:active {
    transform: scale(0.98);
}

.restaurant-cover-img {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

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

.promo-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(231, 76, 60, 0.95);
    color: #050505;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.restaurant-card-content {
    padding: 12px;
}

.restaurant-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.restaurant-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #f5f5f5;
}

.restaurant-title h3 {
    font-size: 16px;
    margin: 0 0 4px 0;
    color: #2c3e50;
}

.restaurant-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #7f8c8d;
}

.restaurant-meta .rating {
    color: #f39c12;
    font-weight: 600;
}

.restaurant-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.restaurant-tags .tag {
    background: #ecf0f1;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: #7f8c8d;
}

.restaurant-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7f8c8d;
    padding-top: 12px;
    border-top: 1px solid #ecf0f1;
}

/* Food Modals */
.food-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.food-modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    overflow-y: auto;
    animation: slideUpModal 0.3s ease;
}

@keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Restaurant Detail */
.restaurant-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.restaurant-detail-header h3 {
    flex: 1;
    margin: 0 12px;
    font-size: 18px;
}

.restaurant-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.restaurant-info {
    padding: 16px;
}

.restaurant-info-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
}

.promo-banner {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.05));
    border-left: 4px solid #e74c3c;
    border-radius: 8px;
    font-size: 13px;
    color: #e74c3c;
    font-weight: 500;
}

/* Menu Categories */
.menu-categories {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 57px;
    z-index: 9;
}

.menu-category-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.menu-category-btn.active {
    background: #8e44ad;
    color: #050505;
    border-color: #8e44ad;
}

/* Menu Items */
.menu-items-container {
    padding: 16px;
}

.menu-item-card {
    display: flex;
    gap: 12px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.menu-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.menu-item-info {
    flex: 1;
    padding: 12px 12px 12px 0;
    display: flex;
    flex-direction: column;
}

.menu-item-name {
    font-size: 15px;
    margin: 0 0 4px 0;
    color: #2c3e50;
}

.menu-item-description {
    font-size: 12px;
    color: #7f8c8d;
    margin: 0 0 8px 0;
    flex: 1;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #8e44ad;
}

.add-to-cart-btn {
    padding: 6px 16px;
    background: #8e44ad;
    color: #050505;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Cart Modal */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.cart-header h3 {
    flex: 1;
    margin: 0 12px;
}

.clear-cart-btn {
    color: #e74c3c;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cart-items {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 14px;
    margin: 0 0 4px 0;
}

.cart-item-restaurant {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #8e44ad;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: white;
    font-size: 16px;
    cursor: pointer;
}

.cart-item-qty {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-summary {
    padding: 16px;
    border-top: 2px solid #e0e0e0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.checkout-btn {
    width: calc(100% - 32px);
    margin: 0 16px 16px 16px;
    padding: 16px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: #050505;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Checkout Modal */
.checkout-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.checkout-header h3 {
    flex: 1;
    margin: 0 12px;
}

.checkout-content {
    padding: 16px;
}

.checkout-section {
    margin-bottom: 24px;
}

.checkout-section h4 {
    font-size: 14px;
    margin: 0 0 12px 0;
    color: #7f8c8d;
}

.address-box {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-box p {
    margin: 0;
    flex: 1;
    font-size: 14px;
}

.change-address-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.payment-method {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.payment-method.selected {
    border: 2px solid #8e44ad;
}

#orderNotes {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.place-order-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #050505;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8e44ad;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   END FOOD ORDERING SYSTEM CSS
   ============================================ */

/* ============================================
   EMBEDDED SOCIAL CONTENT (IG/FB/Threads)
   ============================================ */

.feed-post.embedded-post {
    background: #0a0e1a;
    border-left: 3px solid #00d09c;
    position: relative;
}

.embedded-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 208, 156, 0.1), rgba(1, 184, 141, 0.05));
    border-bottom: 1px solid #1a1a1a;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-badge.embed_ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #050505;
}

.platform-badge.embed_fb {
    background: #1877f2;
    color: #050505;
}

.platform-badge.embed_threads {
    background: #000;
    color: #050505;
}

.embedded-label {
    font-size: 11px;
    color: #00d09c;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.embedded-content-container {
    padding: 16px;
    min-height: 200px;
    background: #fff;
}

.embed-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
}

.embed-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #00d09c;
}

.embed-loading p {
    color: #666;
    font-size: 13px;
}

.embed-error {
    padding: 30px 20px;
    text-align: center;
    background: #fff3cd;
    border-radius: 8px;
}

.embed-error p {
    color: #856404;
    font-size: 14px;
    margin-bottom: 12px;
}

.view-original-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #00d09c;
    color: #050505;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.view-original-btn:hover {
    background: #01b88d;
}

/* Instagram embed styling */
.instagram-media {
    max-width: 100% !important;
    min-width: 100% !important;
}

/* Facebook embed styling */
.fb-post {
    width: 100% !important;
}

.fb-post > span {
    width: 100% !important;
}

/* Threads embed styling */
.threads-post {
    max-width: 100%;
}

/* Responsive embedded content */
@media (max-width: 600px) {
    .embedded-content-container {
        padding: 12px;
    }
    
    .platform-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* ============================================
   END EMBEDDED SOCIAL CONTENT CSS
   ============================================ */

/* ============================================
   NOTIFICATION CENTER - INSTAGRAM STYLE
   ============================================ */

/* Notification Badge on Bell Icon */
.notification-bell {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notification Overlay */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Notification Panel (Slide from Right) */
.notification-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 420px;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
}

.notification-panel.active {
    transform: translateX(0);
}

/* Panel Header */
.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.notif-panel-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-panel-actions {
    display: flex;
    gap: 8px;
}

.notif-action-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.notif-action-btn:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

.notif-action-btn:active {
    transform: scale(0.95);
}

/* Panel Content */
.notif-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.notification-item:hover {
    background: #f8f8f8;
}

.notification-item:active {
    background: #f0f0f0;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item.unread:hover {
    background: #e6f2ff;
}

/* Notification Icon */
.notif-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notif-icon.money {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.notif-icon.transfer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notif-icon.food {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.notif-icon.bill {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.notif-icon.promo {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.notif-icon.security {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.notif-icon.success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.notif-icon.warning {
    background: linear-gradient(135deg, #ffb75e 0%, #ed8f03 100%);
}

.notif-icon.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Notification Content */
.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.notif-message {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 6px;
}

.notif-time {
    font-size: 12px;
    color: #999;
}

/* Unread Dot */
.unread-dot {
    width: 8px;
    height: 8px;
    background: #1877F2;
    border-radius: 50%;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Empty State */
.empty-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 15px;
    color: #999;
}

/* Notification Toast (Floating) */
.notification-toast {
    position: fixed;
    top: calc(var(--sat, 0px) + 80px);
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 90%;
    width: 360px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.toast-icon.money {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.toast-icon.transfer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toast-icon.food {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 600px) {
    .notification-panel {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================
   END NOTIFICATION CENTER
   ============================================ */
