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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #dbeafe;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Curved Background */
.curved-bg {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 320px; /* adjusted height for better proportion */
    background: linear-gradient(135deg, #009c15 0%, #00df00 100%);
    border-radius: 0 0 30% 30% / 0 0 50px 50px;
    z-index: 1;
}

.curved-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bglengkung.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 30% 30% / 0 0 50px 50px;
    z-index: 1;
    filter: brightness(0.5);
}

/* Layered orange background behind the purple curve (faces downward) */
/* Orange underlay sits behind the purple curved background */
.curved-bg-underlay {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 345px; /* slightly taller than main curve */
    border-radius: 0 0 36% 36% / 0 0 70px 70px;
    background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.35) 100%);
    filter: blur(8px);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 2;
    padding: 15px;
    padding-bottom: 70px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: white;
}

.back-button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.back-button i {
    font-size: 1.2rem;
    color: white;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.earnings-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.earnings-display i {
    color: #fbbf24;
    font-size: 1.1rem;
}

#totalEarnings {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fbbf24;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Stats Section */
/* New Referral Progress */
.referral-progress {
    position: relative;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.06) inset, inset 0 -44px 58px rgba(6, 95, 70, 0.50);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}

/* Invite Steps box uses same visual language as referral-progress */
.invite-steps {
    position: relative;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.06) inset, inset 0 -44px 58px rgba(6, 95, 70, 0.50);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    /* Ensure smooth scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    /* Ensure full width */
    width: 100%;
}

.invite-steps::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.85), rgba(96, 165, 250, 0.6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.steps-content {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(59, 130, 246, 0.18));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Smooth scrolling for better mobile experience */
    scroll-behavior: smooth;
    /* Prevent vertical scrolling */
    overflow-y: hidden;
    /* Ensure proper sizing for small screens */
    min-height: fit-content;
    /* Fill entire width */
    width: 100%;
    justify-content: space-between;
    /* Ensure no empty space */
    box-sizing: border-box;
}

.tips-success-list {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.45rem;
    overflow: visible;
    scrollbar-width: auto;
}

.tips-success-list::after {
    content: none;
}

.tips-success-list ol {
    margin: 0;
    padding-left: 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    color: #ffffff;
    list-style-position: outside;
}

.tips-success-list li {
    font-size: 0.78rem;
    line-height: 1.18;
}

.tips-success-list li::marker {
    font-weight: 700;
}

.tips-success-list p {
    margin: 0;
}

.steps-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Add subtle scroll indicator for mobile */
.steps-content::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.18) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show scroll indicator when content overflows */
.steps-content:has(.step-item:nth-child(4))::after {
    opacity: 1;
}

.step-item {
    text-align: center;
    color: #ffffff;
    min-width: 100px;
    flex: 1;
    padding: 0.5rem;
    max-width: none;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #ffffff;
    line-height: 1.2;
}

.step-desc {
    font-size: 0.78rem;
    opacity: 0.9;
    line-height: 1.3;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .steps-content { 
        gap: 0.4rem; 
        padding: 0.6rem; 
        justify-content: space-between;
    }
    .step-item {
        min-width: 90px;
        padding: 0.3rem;
    }
}

@media (max-width: 480px) {
    .steps-content { 
        gap: 0.3rem; 
        padding: 0.5rem; 
        justify-content: space-between;
    }
    .step-item {
        min-width: 80px;
        padding: 0.25rem;
    }
    .step-icon { 
        width: 44px; 
        height: 44px; 
        font-size: 1rem; 
    }
    .step-title {
        font-size: 0.78rem;
    }
    .step-desc {
        font-size: 0.68rem;
    }
}

@media (max-width: 360px) {
    .steps-content { 
        gap: 0.25rem; 
        padding: 0.4rem; 
        justify-content: space-between;
    }
    .step-item {
        min-width: 70px;
        padding: 0.2rem;
    }
    .step-icon { 
        width: 40px; 
        height: 40px; 
        font-size: 0.9rem; 
    }
    .step-title {
        font-size: 0.7rem;
    }
    .step-desc {
        font-size: 0.6rem;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .steps-content { 
        gap: 0.2rem; 
        padding: 0.3rem; 
        justify-content: space-between;
    }
    .step-item {
        min-width: 65px;
        padding: 0.15rem;
    }
    .step-icon { 
        width: 36px; 
        height: 36px; 
        font-size: 0.8rem; 
    }
    .step-title {
        font-size: 0.65rem;
    }
    .step-desc {
        font-size: 0.55rem;
    }
}

/* Ultra small screens - ensure all 3 boxes fit */
@media (max-width: 280px) {
    .steps-content { 
        gap: 0.15rem; 
        padding: 0.25rem; 
        justify-content: space-between;
    }
    .step-item {
        min-width: 60px;
        padding: 0.1rem;
    }
    .step-icon { 
        width: 32px; 
        height: 32px; 
        font-size: 0.75rem; 
        margin-bottom: 0.4rem;
    }
    .step-title {
        font-size: 0.6rem;
        margin-bottom: 0.15rem;
    }
    .step-desc {
        font-size: 0.5rem;
        line-height: 1.2;
    }
}

.referral-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.8), rgba(168, 85, 247, 0.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.referral-progress::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    background: linear-gradient(180deg, rgba(10,6,24,0) 0%, rgba(10,6,24,0.58) 85%, rgba(10,6,24,0.78) 100%);
    pointer-events: none;
}

.progress-header {
    background: linear-gradient(180deg, #6d28d9 0%, #1d4ed8 100%);
    color: #f8fafc;
    font-weight: 800;
    text-align: center;
    padding: 0.7rem 1rem;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
}

.progress-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
    padding: 0.4rem;
}

.metric-card {
    position: relative;
    text-align: center;
    border-radius: 14px;
    padding: 0.35rem;
    background: linear-gradient(180deg, rgba(153, 0, 255, 0.6), rgba(46, 11, 245, 0.6));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 3px 0 var(--accent, rgba(251,191,36,0.6)),
        0 8px 22px rgba(0,0,0,0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        inset 0 3px 0 var(--accent, rgba(251,191,36,0.7)),
        0 12px 28px rgba(0,0,0,0.35);
}

.metric-card:active {
    transform: translateY(0) scale(0.98);
}

.metric-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fbbf24;
    line-height: 1.05;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    margin-bottom: -0.2rem;
    transform: translateY(4px);
}

.metric-sub {
    margin-top: -0.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    line-height: 1;
    font-size: 0.6rem;
}

.metric-sub i {
    font-size: 0.85em;
    opacity: 0.9;
}
/* Colorize icons per metric */
.progress-metrics .metric-card:nth-child(1) .metric-sub i { color: #06b6d4; }
.progress-metrics .metric-card:nth-child(2) .metric-sub i { color: #fbbf24; }
.progress-metrics .metric-card:nth-child(3) .metric-sub i { color: #10b981; }

/* Accent color per card */
.progress-metrics .metric-card:nth-child(1) {
	--accent: #facc15;
}
.progress-metrics .metric-card:nth-child(2) { --accent: #fbbf24; }
.progress-metrics .metric-card:nth-child(3) { --accent: #f59e0b; }

.progress-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.6rem;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(59, 130, 246, 0.18));
    border-top: 1px solid rgba(96, 165, 250, 0.3);
}

.progress-tab {
    background: transparent;
    border: 2px solid rgba(30, 58, 138, 0.5);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
    font-weight: 700;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.progress-tab.active {
    background: linear-gradient(180deg, #7c3aed 0%, #3b82f6 100%);
    color: #ffffff;
    border-color: #0044ff;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.45);
}

.badge {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0 0.5rem;
    font-size: 0.72rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.28);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

/* List under tabs */
.progress-list {
    padding: 0.35rem 0.5rem 0.65rem;
    display: grid;
    gap: 0.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(30, 58, 138, 0.2));
    max-height: 150px; /* tampilkan sekitar 3 item */
    overflow-y: auto;
    padding-right: 0.25rem; /* ruang untuk scrollbar */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;                 /* Firefox */
    scrollbar-color: rgba(59, 130, 246, 0.6) transparent;
}

/* Scrollbar (WebKit/Chromium) */
.progress-list::-webkit-scrollbar {
    width: 6px;
}
.progress-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
}
.progress-list::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.6);
    border-radius: 999px;
}
.progress-list::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.8);
}

.progress-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.55rem 0.25rem 0.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(30, 58, 138, 0.18));
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform 0.15s ease, background 0.15s ease;
}

.progress-item.completed {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(30, 58, 138, 0.18));
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.progress-item.completed:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(30, 58, 138, 0.25));
}

.progress-item:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
}

.progress-item .name {
    font-weight: 600;
    font-size: 0.9rem;
    padding-left: 0.25rem; /* space from left border for number */
}

.progress-item .claim {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.9;
}

.progress-item .status-icon {
    color: #f59e0b; /* amber for pending */
    font-size: 0.95rem;
    margin-left: 0.35rem; /* extra space from claim text */
    margin-right: 0.25rem; /* space from right edge */
}

.progress-item.completed .status-icon {
    color: #10b981; /* green for done */
}

/* Responsive adjustments for Android phones */
@media (max-width: 768px) {
    .progress-metrics {
        gap: 0.25rem;
        padding: 0.4rem;
    }
    .metric-card {
        padding: 0.3rem;
    }
    .progress-item {
        padding: 0.22rem 0.32rem;
    }
    .progress-item .name {
        font-size: 0.85rem;
    }
    .progress-item .claim {
        font-size: 0.75rem;
    }
    .progress-item .status-icon {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .progress-list {
        max-height: 130px;
    }
    .progress-metrics {
        /* Tetap 3 kolom di layar kecil, lebih rapat */
        grid-template-columns: repeat(3, 1fr);
        gap: 0.2rem;
    }
    .metric-value {
        font-size: 1.0rem;
    }
    .progress-tabs {
        gap: 0.6rem;
        padding: 0.6rem;
    }
    .progress-tab {
        padding: 0.55rem 0.6rem;
        font-weight: 700;
    }
    .progress-item {
        padding: 0.2rem 0.28rem;
    }
    .progress-item .name {
        font-size: 0.78rem;
    }
    .progress-item .claim {
        font-size: 0.7rem;
    }
    .progress-item .status-icon {
        font-size: 0.85rem;
    }
}

/* Referral Section */
.referral-section {
    background: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    color: white;
    box-shadow: none;
    margin-bottom: 1rem;
}

.referral-hero {
    width: 70%;
    max-height: 120px;
    object-fit: contain;
    margin: 0 auto 0;
}

.referral-section h2 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #fbbf24;
    line-height: 1.1;
}

/* Referral Title - split into two lines and responsive */
.referral-section .referral-title {
    font-size: clamp(1.1rem, 3.8vw, 1.6rem);
    margin-top: 0;
    margin-bottom: 0.4rem;
    color: #fbbf24;
    line-height: 1.15;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(251, 191, 36, 0.3);
}
.referral-section .referral-title .title-line1,
.referral-section .referral-title .title-line2 {
    display: block;
}
.referral-section .referral-title .title-line2 {
    font-weight: 800;
}
@media (max-width: 480px) {
    .referral-section .referral-title {
        font-size: 1.1rem;
    }
    .referral-section .referral-title .title-line2 {
        font-size: 1.25rem;
    }
}

/* Reward Boxes */
.reward-boxes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.reward-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 2px solid rgba(96, 165, 250, 0.6);
    border-radius: 20px;
    padding: 0.7rem 1.2rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.25), 0 4px 16px rgba(96, 165, 250, 0.18);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reward-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.2), transparent);
    transition: left 0.5s ease;
}

.reward-box:hover::before {
    left: 100%;
}

.reward-box:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.3), 0 6px 20px rgba(96, 165, 250, 0.25);
    border-color: rgba(96, 165, 250, 0.85);
}

.reward-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0ecff;
    font-weight: 800;
    font-size: 1.1rem;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
}

.reward-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

/* Responsive design for reward boxes */
@media (max-width: 480px) {
    .reward-boxes {
        gap: 0.8rem;
        margin-bottom: 0.7rem;
    }
    
    .reward-box {
        padding: 0.6rem 1rem;
        border-radius: 18px;
        border: 2px solid rgba(16, 185, 129, 0.6);
    }
    
    .reward-text {
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .reward-icon-img {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 360px) {
    .reward-boxes {
        gap: 0.6rem;
    }
    
    .reward-box {
        padding: 0.5rem 0.9rem;
        border-radius: 16px;
        border: 2px solid rgba(16, 185, 129, 0.6);
    }
    
    .reward-text {
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .reward-icon-img {
        width: 16px;
        height: 16px;
    }
}

/* Removed referral code block and its styles */

.share-btn-inline {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    padding: 0.45rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn-inline:hover {
    transform: scale(1.1);
}

/* Wide CTA button outside code box */
.invite-cta {
    width: 80%;
    max-width: 520px;
    display: inline-block;
    margin: 0 auto;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    border: 1px solid rgba(248, 113, 113, 0.65);
    border-radius: 999px; /* more rounded like pill */
    padding: 0.9rem 1rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.35);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.3s ease;
    animation: pulseGlow 2.2s ease-in-out infinite; /* subtle pulsing */
}
.invite-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(239, 68, 68, 0.45);
    filter: brightness(1.03);
    border-color: rgba(248, 113, 113, 0.85);
}
.invite-cta:active {
    transform: translateY(0);
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.35);
}
@media (max-width: 480px) {
    .invite-cta {
        width: 80%;
        padding: 0.85rem 0.9rem;
        border-radius: 999px;
        font-weight: 800;
    }
}

/* Stronger pulse animation */
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 22px 60px rgba(16, 185, 129, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
    }
}

/* Inline referral code row under CTA (colors preserved) */
.referral-inline {
    margin-top: 0.3rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff;
}
.referral-inline .label {
    opacity: 0.95;
    font-size: 0.82rem;
}
.referral-inline .code {
    font-weight: 400;
    color: #ffffff;
    font-size: 0.86rem;
}
.copy-btn-inline {
    background: none;
    color: #ffffff;
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.copy-btn-inline:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

/* Make the inline referral row more compact on small Android screens */
@media (max-width: 480px) {
	.referral-inline { gap: 0.35rem; }
	.referral-inline .label { font-size: 0.72rem; }
	.referral-inline .code { font-size: 0.82rem; }
	.copy-btn-inline { padding: 0.4rem; font-size: 0.9rem; }
}

@media (max-width: 360px) {
	.referral-inline { gap: 0.3rem; flex-wrap: wrap; }
	.referral-inline .label { font-size: 0.68rem; }
	.referral-inline .code { font-size: 0.78rem; }
	.copy-btn-inline { padding: 0.35rem; font-size: 0.85rem; }
}

/* Rewards Section */
.rewards-section {
    background: linear-gradient(135deg, #3d2b79 0%, #2e1b59 100%);
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.rewards-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fbbf24;
    text-align: center;
}

.reward-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.reward-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.reward-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.reward-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #009c15 0%, #00df00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
}

.reward-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

.reward-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* Share Section */
.share-section {
    background: linear-gradient(135deg, #3d2b79 0%, #2e1b59 100%);
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.share-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fbbf24;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.share-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 15px;
    padding: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn i {
    font-size: 1.5rem;
}

.share-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

.share-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
}

.share-btn.telegram:hover {
    background: rgba(0, 136, 204, 0.2);
}

.share-btn.facebook:hover {
    background: rgba(66, 103, 178, 0.2);
}

.share-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
}

/* Referrals Section */
.referrals-section {
    background: linear-gradient(135deg, #3d2b79 0%, #2e1b59 100%);
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Tips Section – reuse same visual language as invite-steps */
.tips-section {
    position: relative;
    background: linear-gradient(180deg, rgba(6, 95, 70, 0.8), rgba(4, 120, 87, 0.7));
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.06) inset, inset 0 -44px 58px rgba(6, 95, 70, 0.50);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    margin-top: 0; /* use default 1rem flex gap from .main-content */
    margin-bottom: 24px; /* tighter spacing above bottom nav */
}

.tips-section::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.8), rgba(168, 85, 247, 0.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.tips-content {
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(0, 200, 7, 0.3), rgba(6, 95, 70, 0.2));
}

.tips-list {
    margin-left: 1rem;
    display: grid;
    gap: 0.45rem;
    column-count: 2;
    column-gap: 2rem;
    color: #ffffff;
}

.tips-list li {
    line-height: 1.35;
    font-size: 0.88rem;
}

@media (max-width: 480px) {
    .tips-content { padding: 1rem; }
    .tips-list { gap: 0.3rem; column-count: 1; column-gap: 0; }
    .tips-list li { font-size: 0.78rem; line-height: 1.32; }
    .tips-section { margin-bottom: 28px; }
}

/* Finer scaling for smaller Android screens */
@media (max-width: 360px) {
    .tips-list { column-count: 1; }
    .tips-list li { font-size: 0.72rem; line-height: 1.28; }
    .tips-section { margin-bottom: 28px; }
}

@media (max-width: 320px) {
    .tips-list li { font-size: 0.68rem; line-height: 1.25; }
    .tips-section { margin-bottom: 28px; }
}

@media (max-width: 280px) {
    .tips-list li { font-size: 0.64rem; line-height: 1.22; }
    .tips-section { margin-bottom: 32px; }
}

.referrals-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.empty-state {
    text-align: center;
    padding: 1rem 0.8rem;
    opacity: 0.7;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
}

.empty-state span {
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1.3;
}

/* Invitation Terms section (matches referral-progress visual language) */
.terms-section {
    position: relative;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35), 0 1px 0 rgba(255,255,255,0.08) inset, inset 0 -44px 58px rgba(29, 78, 216, 0.45);
    overflow: hidden;
    border: 1px solid rgba(59,130,246,0.5);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.terms-section::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.85), rgba(96, 165, 250, 0.6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.terms-content {
    display: grid;
    gap: 0.3rem;
    padding: 0.7rem;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(37, 99, 235, 0.18));
}

.term-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.6rem;
    align-items: center;
    padding: 0.3rem 0.5rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.32), rgba(59, 130, 246, 0.24));
    border: 1px solid rgba(147, 197, 253, 0.35);
    color: #ffffff;
}

.term-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.term-left::after {
    content: '';
    position: absolute;
    right: -0.4rem;
    top: 6%;
    bottom: 6%;
    width: 2px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
}

.term-right { line-height: 1.1; font-size: 0.74rem; opacity: 0.9; }

.term-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    border: 1px solid rgba(147, 197, 253, 0.4);
    border-radius: 10px;
    padding: 0.35rem 0.55rem;
    min-width: 110px;
    color: #ffffff;
    row-gap: 2px;
}

.term-badge .term-title { font-weight: 700; font-size: 0.9rem; line-height: 1; }
.term-badge .term-amount { font-weight: 800; font-size: 1rem; line-height: 1; color: #fbbf24; }

.term-badge.green {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    border-color: rgba(96, 165, 250, 0.45);
}

.term-badge.gold {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    border-color: rgba(147, 197, 253, 0.4);
}

@media (max-width: 480px) {
    .terms-content { padding: 0.6rem; gap: 0.28rem; }
    .term-row { grid-template-columns: 100px 1fr; padding: 0.28rem 0.45rem; gap: 0.5rem; }
    .term-badge { min-width: 100px; padding: 0.3rem 0.5rem; row-gap: 1px; }
    .term-right { font-size: 0.68rem; line-height: 1.12; }
}

@media (max-width: 360px) {
    .term-row { grid-template-columns: 92px 1fr; }
    .term-badge { min-width: 92px; }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: -6px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    display: flex;
    justify-content: space-around;
    padding: 0.28rem 0.35rem;
    box-shadow: 0 -6px 18px rgba(30, 64, 175, 0.35), 0 -1px 0 rgba(147, 197, 253, 0.25) inset;
    z-index: 1000;
    border-radius: 16px 16px 0 0;
    border: none;
    border-top: 1px solid rgba(147, 197, 253, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.06rem;
    color: rgba(226, 232, 240, 0.85);
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    padding: 0.42rem 0.55rem;
    border-radius: 12px;
    min-width: 64px;
    flex: 1;
    position: relative;
}

.nav-item:hover { color: #f8fafc; background: rgba(59, 130, 246, 0.25); transform: translateY(-1px); }

.nav-item.active { color: #f0f9ff; background: rgba(59, 130, 246, 0.35); box-shadow: 0 6px 14px rgba(30, 64, 175, 0.35), inset 0 0 0 1px rgba(191, 219, 254, 0.55); }

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: #93c5fd;
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(147, 197, 253, 0.65);
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item span { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1px; line-height: 1; margin-top: 2px; }

/* Image icons for bottom navigation */
.nav-item .nav-icon { width: 26px; height: 26px; object-fit: contain; opacity: 0.9; transition: opacity 180ms ease, transform 180ms ease; filter: drop-shadow(0 0 1px rgba(0,0,0,0.65)); }
.nav-item.active .nav-icon { opacity: 1; transform: translateY(-1px); }

/* Floating draggable chest button */
.floating-chest {
    position: fixed;
    right: 18px;
    bottom: 88px; /* above bottom nav */
    width: 58px;
    height: 58px; /* circular button size */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), rgba(255,255,255,0.08) 40%, rgba(0,0,0,0.25) 100%);
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
    z-index: 1100;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none; /* prevent page scroll while dragging */
    -webkit-tap-highlight-color: transparent;
}

.floating-chest img {
    max-width: 100%;
    max-height: 100%;
    pointer-events: none;
    animation: chestWiggle 1.6s ease-in-out infinite;
    will-change: transform;
}

/* Pause animation while dragging */
.floating-chest.dragging img { animation: none; transform: none; }

@keyframes chestWiggle {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    10% { transform: rotate(-6deg) translateY(-1px); }
    20% { transform: rotate(6deg) translateY(1px); }
    30% { transform: rotate(-5deg); }
    40% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .floating-chest img { animation: none; }
}

.chest-label {
    background: linear-gradient(180deg, #ef4444, #dc2626);
    color: #fff;
    font-weight: 600; /* lighter than bold for better readability */
    font-size: 0.64rem;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(220,38,38,0.35);
    pointer-events: none; /* label won't intercept drag */
    position: absolute;
    left: 50%;
    top: calc(100% - 6px);
    transform: translateX(-50%);
    white-space: nowrap; /* keep on one line */
}

/* Floating input button (mirror of chest) */
.floating-input {
    position: fixed;
    right: 8px;
    top: 18px; /* place at top-right corner */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), rgba(255,255,255,0.08) 40%, rgba(0,0,0,0.25) 100%);
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
    z-index: 1100;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: floating-input-shake 1s ease-in-out infinite;
}

.floating-input img {
    max-width: 100%;
    max-height: 100%;
    pointer-events: none;
}

@media (max-width: 480px) {
    .floating-input { width: 46px; height: 46px; top: 16px; right: 8px; }
}

@keyframes floating-input-shake {
    0%, 90%, 100% { transform: translate(0, 0); }
    93% { transform: translate(-3px, -1px) rotate(-3deg); }
    96% { transform: translate(3px, 1px) rotate(3deg); }
    98% { transform: translate(-2px, 0) rotate(-2deg); }
}

/* Gift modal styles */
.gift-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gift-modal-overlay.active { display: flex; opacity: 1; }

/* Prevent body scroll when modal open */
body.modal-open {
    overflow: hidden;
}

.gift-modal {
    width: min(440px, 92vw);
    background: linear-gradient(180deg, #0f172a, #1e3a8a);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
}

.gift-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.gift-header {
    padding: 1rem 1.1rem 0.4rem;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.25), rgba(15, 23, 42, 0.15));
    border-bottom: 1px solid rgba(96, 165, 250, 0.25);
}

.gift-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
}

.gift-sub {
    margin-top: 0.2rem;
    color: #38bdf8;
    font-weight: 700;
}

.gift-body { padding: 1rem 1.1rem 1.2rem; }

.gift-input {
    display: flex;
    gap: 0.5rem;
}

.gift-input input {
    flex: 1;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(30, 64, 175, 0.18);
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.gift-input input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.65);
    background: rgba(37, 99, 235, 0.24);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.gift-input input::placeholder {
    color: rgba(226, 232, 240, 0.7);
}

.gift-input input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.gift-input input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.gift-apply {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gift-apply:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #1d4ed8 100%);
    border-color: rgba(96, 165, 250, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(96, 165, 250, 0.25);
}

.gift-hint {
    margin-top: 0.45rem;
    color: rgba(191, 219, 254, 0.85);
    font-size: 0.8rem;
}

@media (max-width: 480px) {
    .floating-chest { width: 54px; height: 54px; bottom: 96px; right: 14px; }
    .chest-label { font-size: 0.58rem; padding: 5px 8px; }
}

@media (max-width: 360px) {
    .chest-label { font-size: 0.54rem; padding: 4px 7px; font-weight: 500; }
    
    /* Empty state untuk layar sangat kecil */
    .empty-state {
        padding: 0.6rem 0.4rem;
    }
    
    .empty-state i {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    
    .empty-state p {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
        color: #ffffff;
    }
    
    .empty-state span {
        font-size: 0.65rem;
    }
}

@media (max-width: 320px) {
    .chest-label { font-size: 0.52rem; padding: 4px 6px; font-weight: 500; }
    
    /* Empty state untuk layar 320px */
    .empty-state {
        padding: 0.5rem 0.3rem;
    }
    
    .empty-state i {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    
    .empty-state p {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
        color: #ffffff;
    }
    
    .empty-state span {
        font-size: 0.6rem;
    }
}

@media (max-width: 280px) {
    .chest-label { font-size: 0.5rem; padding: 3px 6px; font-weight: 500; }
    
    /* Empty state untuk layar 280px */
    .empty-state {
        padding: 0.4rem 0.2rem;
    }
    
    .empty-state i {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }
    
    .empty-state p {
        font-size: 0.7rem;
        margin-bottom: 0.1rem;
        color: #ffffff;
    }
    
    .empty-state span {
        font-size: 0.55rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 12px;
        padding-bottom: 70px;
    }
    
    /* Improve touch scrolling on mobile */
    .steps-content {
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }
    
    .step-item {
        scroll-snap-align: start;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .stats-section {
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .share-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    
    .share-btn {
        padding: 0.8rem;
    }
    
    .share-btn i {
        font-size: 1.3rem;
    }
    
    .share-btn span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .referral-code span {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .reward-cards {
        gap: 0.8rem;
    }
    
    .reward-card {
        padding: 1rem;
    }
    
    .reward-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Empty state responsive */
    .empty-state {
        padding: 0.8rem 0.6rem;
    }
    
    .empty-state i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .empty-state p {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
        color: #ffffff;
    }
    
    .empty-state span {
        font-size: 0.7rem;
    }
}

/* Social Media Section */
.social-media-section {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-radius: 16px;
    padding: 0;
    margin: -0.2rem 0 1rem 0;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
    border: 1px solid rgba(59,130,246,0.5);
    overflow: hidden;
}

.social-media-section .progress-header {
    background: linear-gradient(180deg, #1e3a8a, #1d4ed8);
    color: #f8fafc;
    font-weight: 800;
    text-align: center;
    padding: 0.7rem 1rem;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.35);
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
}

.social-media-section .social-content {
    padding: 1.2rem;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-top: 0;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.35), rgba(96, 165, 250, 0.25));
    border-radius: 12px;
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 8px 16px rgba(30, 64, 175, 0.35),
        inset 0 4px 8px rgba(30, 64, 175, 0.4),
        inset 0 2px 4px rgba(15, 23, 42, 0.3),
        0 3px 6px rgba(15, 23, 42, 0.25);
    border: 0.5px solid rgba(96, 165, 250, 0.45);
    min-height: 70px;
}

.social-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 6px 12px rgba(37, 99, 235, 0.3),
        inset 0 3px 6px rgba(30, 64, 175, 0.35),
        inset 0 1px 2px rgba(15, 23, 42, 0.25),
        0 4px 8px rgba(30, 64, 175, 0.25);
    border-color: rgba(96, 165, 250, 0.6);
    background: linear-gradient(135deg, rgba(191, 219, 254, 0.6), rgba(147, 197, 253, 0.45));
}

.social-card:active {
    transform: translateY(0);
    box-shadow: 
        inset 0 12px 24px rgba(29, 78, 216, 0.45),
        inset 0 6px 12px rgba(30, 64, 175, 0.55),
        inset 0 3px 6px rgba(30, 64, 175, 0.45),
        0 2px 4px rgba(15, 23, 42, 0.2);
    border-color: rgba(59, 130, 246, 0.75);
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.6), rgba(96, 165, 250, 0.5));
}

.social-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.3rem;
    border-radius: 8px;
}

.social-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f172a;
    text-align: center;
    line-height: 1.2;
}

/* Responsive adjustments for social media */
@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }
    
    .social-card {
        padding: 0.8rem 0.3rem;
        min-height: 65px;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 0.25rem;
    }
    
    .social-name {
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .social-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .social-card {
        padding: 0.7rem 0.2rem;
        min-height: 60px;
    }
    
    .social-icon {
        width: 26px;
        height: 26px;
        margin-bottom: 0.2rem;
    }
    
    .social-name {
        font-size: 0.65rem;
    }
}

