:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --success: #4cc9f0;
    --info: #4895ef;
    --warning: #f72585;
    --danger: #7209b7;
    --light: #f8f9fa;
    --dark: #212529;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-reverse: linear-gradient(135deg, var(--secondary), var(--primary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fb;
    color: #333;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: var(--gradient);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    font-size: 1.8rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 8px 15px !important;
    margin: 0 5px;
    border-radius: 8px;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 8px;
    color: white;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 100px 0 120px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section .stat-item {
    all: unset;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.hero-section .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-section .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
    margin-top: 5px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

/* Animated Badge */
.hero-badge {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    animation: float 6s ease-in-out infinite;
}

.animated-badge {
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.animated-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.badge-sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: sparkle 1.5s infinite;
}

.badge-sparkle:nth-child(1) {
    top: 5px;
    left: 15px;
    animation-delay: 0s;
}

.badge-sparkle:nth-child(2) {
    top: 5px;
    right: 15px;
    animation-delay: 0.5s;
}

/* Typing Animation */
.typing-animation {
    position: relative;
    display: inline-block;
}

.typing-text {
    background: linear-gradient(90deg, white, #4cc9f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid white;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white; }
}

/* Hero CTA Buttons */
.btn-hero {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-hero:hover::before {
    width: 100%;
}

.btn-hero:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-hero-image {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.main-hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    border-radius: 20px;
}

.pulse-animation {
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Floating Objects */
.floating-object {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    cursor: pointer;
}

.object-1 {
    top: 20%;
    left: 10%;
    animation: float-1 8s ease-in-out infinite;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
}

.object-2 {
    top: 60%;
    right: 15%;
    animation: float-2 7s ease-in-out infinite;
    background: linear-gradient(45deg, #4cc9f0, #4895ef);
}

.object-3 {
    bottom: 20%;
    left: 15%;
    animation: float-3 9s ease-in-out infinite;
    background: linear-gradient(45deg, #7209b7, #f72585);
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(-5deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(8deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-down {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
    cursor: pointer;
}

.scroll-down:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-align: center;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    margin: 0 auto;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: white;
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin: -5px;
    animation: arrow 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes arrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-10px, -10px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(10px, 10px); }
}

/* Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation: rotate-1 20s linear infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -50px;
    animation: rotate-2 25s linear infinite;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation: rotate-3 30s linear infinite;
}

.bg-shape {
    position: absolute;
    background: rgba(255,255,255,0.03);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: float-shape-1 15s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 5%;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: float-shape-2 18s ease-in-out infinite;
}

@keyframes rotate-1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-2 {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes rotate-3 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float-shape-1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes float-shape-2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(30px) rotate(-5deg); }
}

/* Animation Delays */
.fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 1s both;
}

.fade-in-delay-3 {
    animation: fadeInUp 0.8s ease-out 1.5s both;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    border-left: none !important;
    min-width: 120px;
    text-align: center;
    flex: 1;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
    margin-top: 5px;
}

.hero-stats .stat-item:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary);
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.stats-icon.primary { background: rgba(67, 97, 238, 0.1); color: var(--primary); }
.stats-icon.success { background: rgba(76, 201, 240, 0.1); color: var(--success); }
.stats-icon.info { background: rgba(72, 149, 239, 0.1); color: var(--info); }
.stats-icon.warning { background: rgba(247, 37, 133, 0.1); color: var(--warning); }

.stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-card p {
    color: #6c757d;
    margin: 0;
}

/* Account Cards */
.account-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.account-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(67, 97, 238, 0.2) !important;
}

.account-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 25px;
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.account-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    z-index: 0;
}

.account-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.4);
}

.account-rank-display {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

.rank-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    border-radius: 15px;
    padding: 10px;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.account-card:hover .rank-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: rankGlow 2s infinite;
}

@keyframes rankGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    }
    50% {
        filter: drop-shadow(0 2px 15px rgba(255,255,255,0.3));
    }
}

.rank-text-container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.rank-text {
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 8px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

.account-id {
    font-size: 1rem;
    opacity: 0.9;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 15px;
    border-radius: 6px;
    display: inline-block;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    margin-top: 5px;
}

/* Rank image kecil untuk statistik */
.rank-image-small {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
    background: rgba(67, 97, 238, 0.1);
    border-radius: 6px;
    padding: 2px;
    flex-shrink: 0;
}

.account-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.account-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(67, 97, 238, 0.2);
}

.account-price::before {
    content: 'Rp ';
    font-size: 0.7em;
    opacity: 0.9;
}

.account-details {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex: 1;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.account-details li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.account-details li:hover {
    background: rgba(67, 97, 238, 0.03);
    padding-left: 10px;
    border-bottom-color: var(--primary);
}

.account-details li:last-child {
    border-bottom: none;
}

.detail-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-value {
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
}

.rank-badge {
    background: linear-gradient(135deg, var(--info), var(--primary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(72, 149, 239, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    margin-top: 15px;
    text-decoration: none !important;
    border: none !important;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    color: white;
    text-decoration: none !important;
}

.btn-buy span, .btn-buy i {
    text-decoration: none !important;
    border: none !important;
}

.btn-buy i {
    font-size: 1.1rem;
}

.btn-buy:hover i {
    transform: translateX(5px);
}

/* Scrollbar styling untuk account details */
.account-details::-webkit-scrollbar {
    width: 5px;
}

.account-details::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.account-details::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* How to Buy Section */
.how-to-buy {
    background: white;
    padding: 80px 0;
}

.step-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: rgba(67, 97, 238, 0.05);
    height: 100%;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(67, 97, 238, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h4 {
    margin-bottom: 15px;
    color: var(--dark);
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto 20px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: #6c757d;
    margin-bottom: 10px;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(67, 97, 238, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Desktop (min-width: 992px) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 90vh;
        padding: 120px 0 150px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        max-width: 90%;
    }
    
    .hero-cta {
        flex-wrap: nowrap;
    }
    
    .btn-hero {
        padding: 18px 35px;
        font-size: 1.2rem;
    }
    
    .hero-stats {
        margin-top: 60px;
        gap: 50px;
    }
    
    .stat-item {
        min-width: 150px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* Stats cards improvements */
    .stats-card {
        padding: 35px 25px;
        border-radius: 20px;
    }
    
    .stats-icon {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
        margin-bottom: 25px;
    }
    
    .stats-card h3 {
        font-size: 2.5rem;
    }
    
    .stats-card p {
        font-size: 1.1rem;
    }
    
    /* Features section improvements */
    .feature-card {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .feature-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        margin-bottom: 25px;
    }
    
    .feature-card h4 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    /* Fix account cards grid layout */
    #accounts .row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    #accounts .col-lg-4 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0;
    }
}

/* Responsive Tablet (max-width: 991px) */
@media (max-width: 992px) {
    .hero-section {
        padding: 80px 0 100px;
        min-height: auto;
    }
    
    .hero-image-container {
        height: 400px;
        margin-top: 50px;
    }
    
    .floating-object {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .btn-hero {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 100px;
    }
}

/* Responsive Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .account-rank-display {
        gap: 15px;
    }
    
    .rank-image {
        width: 70px;
        height: 70px;
        padding: 6px;
    }
    
    .rank-text {
        font-size: 1.2rem;
    }
    
    .account-id {
        font-size: 0.85rem;
        padding: 4px 10px;
    }
    
    .rank-image-small {
        width: 32px;
        height: 32px;
    }
    
    .account-header {
        padding: 20px;
        min-height: 130px;
    }
    
    .account-price {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-image-container {
        height: 300px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .stat-item {
        flex: 0 0 auto;
        width: calc(33.333% - 20px);
    }
    
    .account-card {
        margin-bottom: 20px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stats-card {
        padding: 20px;
    }
    
    .stats-card h3 {
        font-size: 1.6rem;
    }
    
    .floating-object {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-text {
        font-size: 0.8rem;
    }
}

/* Responsive Mobile (max-width: 576px) */
@media (max-width: 576px) {
    .account-header {
        padding: 15px;
        min-height: 120px;
    }
    
    .account-rank-display {
        gap: 12px;
        flex-direction: row;
        align-items: center;
    }
    
    .rank-image {
        width: 65px;
        height: 65px;
        padding: 5px;
    }
    
    .rank-text {
        font-size: 1.1rem;
    }
    
    .account-id {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .account-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
        top: 10px;
        right: 10px;
    }
    
    .rank-image-small {
        width: 28px;
        height: 28px;
    }
    
    .account-price {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn-hero {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-right: 0 !important;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item {
        width: calc(50% - 10px);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .scroll-indicator {
        bottom: 15px;
    }
}

/* Untuk layar yang sangat kecil (max-width: 400px) */
@media (max-width: 400px) {
    .account-rank-display {
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }
    
    .rank-image {
        width: 60px;
        height: 60px;
    }
    
    .rank-text-container {
        width: 100%;
    }
    
    .rank-text {
        font-size: 1rem;
        white-space: normal;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .account-id {
        font-size: 0.75rem;
        display: block;
        margin: 0 auto;
        max-width: 90%;
        text-align: center;
    }
    
    .account-price {
        font-size: 1.6rem;
    }
    
    .detail-label, .detail-value {
        font-size: 0.9rem;
    }
}

/* Tablet Landscape (min-width: 768px) dan (max-width: 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .account-rank-display {
        gap: 20px;
    }
    
    .rank-image {
        width: 75px;
        height: 75px;
    }
    
    .rank-text {
        font-size: 1.3rem;
    }
    
    .account-id {
        font-size: 0.9rem;
    }
    
    .account-price {
        font-size: 2rem;
    }
}

/* Status Tersedia dengan warna hijau */
.status-available {
    color: #28a745 !important;
    font-weight: 600;
}

.status-sold {
    color: #dc3545 !important;
    font-weight: 600;
}

.rank-stats-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.stats-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.stats-subtitle {
    color: #666;
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.rank-stats-section .stat-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #4361ee;
    transition: all 0.3s ease;
}

.rank-stats-section .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.rank-stats-section .stat-rank {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.rank-stats-section .stat-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4361ee;
    margin-bottom: 5px;
}

.rank-stats-section .stat-percentage {
    color: #666;
    font-size: 0.9rem;
}

.chart-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.chart-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rank-stats-section {
        padding: 20px;
    }
    
    .stat-count {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .rank-stats-section {
        padding: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
}