/* ========================================== */
/* RANKS.CSS - Membership & Keys              */
/* ========================================== */

.ranks-section { padding: 80px 0; }

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.rank-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.rank-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
}

.rank-card-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Ccircle cx='4' cy='4' r='1'/%3E%3Ccircle cx='16' cy='16' r='1'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.rank-card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    bottom: -80px;
    right: -60px;
    pointer-events: none;
    filter: blur(40px);
}

.rank-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    z-index: 2;
}

.rank-card-content {
    position: relative;
    z-index: 1;
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rank-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    padding-right: 50px;
}

.rank-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.rank-price .currency {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.rank-price .amount {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.rank-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    flex: 1;
}

.rank-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.rank-benefits li svg {
    flex-shrink: 0;
    color: var(--text-primary);
    opacity: 0.7;
}

.rank-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    margin-top: auto;
    text-decoration: none;
    cursor: pointer;
}

.rank-btn:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

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

.rank-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.rank-recommended {
    border-color: var(--border-hover);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(255,255,255,0.015) 100%);
}

/* HAPUS override .rank-recommended .rank-name biar warna aether-name tetap merah */

/* Vote/Keys Section */
.vote-section { margin-top: 40px; }

.vote-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.vote-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: var(--transition-base);
    overflow: hidden;
}

.vote-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.vote-card-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Ccircle cx='3' cy='3' r='1.5'/%3E%3Ccircle cx='13' cy='13' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.vote-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.vote-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.vote-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.vote-price {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.vote-price span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.vote-btn {
    display: block;
    width: 100%;
    padding: 10px 18px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
    text-decoration: none;
    cursor: pointer;
}

.vote-btn:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

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

.vote-card-featured {
    border-color: var(--border-hover);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(255,255,255,0.015) 100%);
}

/* ========================================== */
/* RANK COLOR THEMES                          */
/* ========================================== */

/* Color dots inline */
.rank-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
}
.enigma-dot  { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.7); }
.arcane-dot  { background: #60a5fa; box-shadow: 0 0 6px rgba(96,165,250,0.7); }
.aether-dot  { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.7); }
.elixir-dot  { background: #c084fc; box-shadow: 0 0 6px rgba(192,132,252,0.7); }

/* Rank name colors */
.enigma-name { color: #4ade80; }
.arcane-name { color: #60a5fa; }
.aether-name { color: #f87171; }
.elixir-name { color: #c084fc; }

/* Rank button colors */
.enigma-btn { background: rgba(74,222,128,0.12) !important; border-color: rgba(74,222,128,0.35) !important; color: #4ade80 !important; }
.enigma-btn:hover { background: rgba(74,222,128,0.22) !important; }
.arcane-btn { background: rgba(96,165,250,0.12) !important; border-color: rgba(96,165,250,0.35) !important; color: #60a5fa !important; }
.arcane-btn:hover { background: rgba(96,165,250,0.22) !important; }
.aether-btn { background: rgba(248,113,113,0.12) !important; border-color: rgba(248,113,113,0.35) !important; color: #f87171 !important; }
.aether-btn:hover { background: rgba(248,113,113,0.22) !important; }
.elixir-btn { background: rgba(192,132,252,0.12) !important; border-color: rgba(192,132,252,0.35) !important; color: #c084fc !important; }
.elixir-btn:hover { background: rgba(192,132,252,0.22) !important; }

/* Rank glow per color */
.arcane-glow { background: radial-gradient(circle, rgba(96,165,250,0.08) 0%, transparent 70%); }
.aether-glow { background: radial-gradient(circle, rgba(248,113,113,0.08) 0%, transparent 70%); }
.elixir-glow { background: radial-gradient(circle, rgba(192,132,252,0.08) 0%, transparent 70%); }

/* Rank card border glow on hover */
.rank-card:has(.enigma-name):hover { border-color: rgba(74,222,128,0.35); box-shadow: 0 20px 60px rgba(74,222,128,0.08); }
.rank-card:has(.arcane-name):hover { border-color: rgba(96,165,250,0.35); box-shadow: 0 20px 60px rgba(96,165,250,0.08); }
.rank-card:has(.aether-name):hover { border-color: rgba(248,113,113,0.35); box-shadow: 0 20px 60px rgba(248,113,113,0.08); }
.rank-card:has(.elixir-name):hover { border-color: rgba(192,132,252,0.35); box-shadow: 0 20px 60px rgba(192,132,252,0.08); }

/* Inherit row (perks from previous rank) */
.rank-inherit {
    opacity: 0.55;
    font-style: italic;
    font-size: 0.8125rem !important;
}
.rank-inherit svg { opacity: 0.6; }

/* ========================================== */
/* MEMBER (FREE) CARD                         */
/* ========================================== */
.rank-card-member {
    border-color: rgba(120, 120, 130, 0.25);
    background: linear-gradient(180deg, rgba(30,30,35,0.9) 0%, rgba(18,18,22,0.95) 100%);
    opacity: 0.9;
}
.rank-card-member:hover {
    border-color: rgba(150, 150, 160, 0.4) !important;
    box-shadow: none !important;
    transform: translateY(-3px);
}

.member-name {
    color: #9ca3af;
}

.member-amount {
    color: #9ca3af;
}

.rank-badge-free {
    background: rgba(100, 100, 110, 0.35) !important;
    color: #9ca3af !important;
    border: 1px solid rgba(120,120,130,0.3);
}

/* "Default Plan" label — no button, just label */
.member-free-label {
    display: block;
    width: 100%;
    padding: 10px 20px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background: rgba(80, 80, 90, 0.08);
    border: 1px dashed rgba(100, 100, 110, 0.25);
    border-radius: var(--radius-md);
    margin-top: auto;
    letter-spacing: 0.03em;
    cursor: default;
    user-select: none;
}
