/* Root Variables - Golden/Yellow Theme */
:root {
    --primary-gold: #FFD700;
    --dark-gold: #FFC700;
    --secondary-gold: #DAA520;
    --dark-bg: #e3e4cd;
    --light-bg: #f5f5f5;
    --text-dark: #000000;
    --text-light: #666;
    --red-accent: #FF4444;
    --blue-accent: #4A90E2;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    color: var(--text-dark);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-bg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-links a {
    color: var(--dark-bg);
    text-decoration: none;
    margin-left: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* App Container */
.app-container {
    width: 100%;
    height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
}

.app-container::-webkit-scrollbar {
    width: 8px;
}

.app-container::-webkit-scrollbar-track {
    background: var(--light-bg);
}

.app-container::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

/* Pages */
.page {
    display: none;
    min-height: calc(100vh - 60px);
    padding-bottom: 70px;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Page */
#authPage {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    margin: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.auth-header h2 {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-form h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.country-code {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: var(--light-bg);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    flex: 1;
    margin-bottom: 0;
}

.password-field {
    position: relative;
    margin-bottom: 1rem;
}

.password-field input {
    width: 100%;
    padding-right: 3rem;
    margin-bottom: 0;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.referral-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.referral-code {
    position: relative;
    margin-bottom: 1rem;
}

.referral-code input {
    padding-left: 3rem;
}

.btn-primary {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--light-bg);
}

/* Wheel Page */
.wheel-container {
    padding: 2rem;
    text-align: center;
}

.wheel-header {
    margin-bottom: 2rem;
}

.wheel-header h2 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.wheel-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.fortune-wheel {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 2rem auto;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
}

.spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-accent) 0%, #FF2222 100%);
    color: white;
    border: 3px solid white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    transition: transform 0.3s;
    z-index: 10;
}

.spin-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.spin-button:active {
    transform: translate(-50%, -50%) scale(0.98);
}

.winning-records {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.winning-records h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 0.5rem;
}

.winning-record-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.winning-record-item:last-child {
    border-bottom: none;
}

.record-title {
    color: var(--text-dark);
    font-weight: 600;
}

.record-time {
    color: var(--text-light);
    font-size: 0.8rem;
}

.record-amount {
    color: var(--red-accent);
    font-weight: 600;
}

/* Profile Page */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.phone-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.phone-display img {
    width: 60px;
    height: 60px;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-bg);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat label {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.stat span {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.vip-status {
    text-align: center;
    margin-bottom: 2rem;
}

.vip-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--dark-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--primary-gold);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
}

.action-btn .icon {
    font-size: 1.8rem;
}

.action-btn span:last-child {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-menu {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.3s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--light-bg);
}

.menu-item .icon {
    font-size: 1.3rem;
}

.menu-item span {
    flex: 1;
    font-weight: 500;
}

.menu-item::after {
    content: '›';
    font-size: 1.5rem;
    color: var(--text-light);
}

.menu-item.logout {
    color: var(--red-accent);
}

/* Plans Page */
.plans-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gold);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.back-btn:hover {
    transform: scale(1.1);
}

.page-header h2 {
    color: var(--text-dark);
    flex: 1;
}

.plans-section {
    margin-bottom: 2.5rem;
}

.section-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.plans-grid {
    display: grid;
    gap: 1rem;
}

/* Large plan card layout (image on top, buy button, dotted info box) */
.plan-image-large-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}
.plan-image-large {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.buy-invest-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FFA726 0%, #FFB74D 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
.plan-info-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background: white;
    border: 2px dotted rgba(0,0,0,0.08);
}
.plan-info-box .info-row { display:flex; justify-content:space-between; padding:6px 0; }
.plan-info-box .info-label { color: var(--text-light); }
.plan-info-box .info-value { color: var(--primary-gold); font-weight:700; }

/* Make the plans grid single-column on small screens and two columns on wider screens */
@media (min-width: 720px) {
    .plans-grid { grid-template-columns: 1fr 1fr; }
}

.plan-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.plan-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.plan-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.plan-card.locked::after {
    content: '🔒';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.plan-badge {
    background: var(--primary-gold);
    color: var(--dark-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.plan-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
}

.buy-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.buy-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.purchase-records {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.purchase-records h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 0.5rem;
}

.record-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.record-item:last-child {
    border-bottom: none;
}

.record-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.record-info p {
    color: var(--text-light);
    font-size: 0.8rem;
}

.record-amount-item {
    color: var(--primary-gold);
    font-weight: 600;
}

/* Recharge Page */
.recharge-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.recharge-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
}

.available-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.available-balance span:first-child {
    color: var(--text-light);
}

.amount {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.quick-recharge {
    margin-bottom: 2rem;
}

.quick-recharge label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.recharge-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.recharge-btn {
    padding: 1rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.recharge-btn:hover {
    border-color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
}

.recharge-btn.selected {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border-color: var(--primary-gold);
}

.custom-recharge {
    margin-bottom: 1.5rem;
}

.custom-recharge input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.payment-methods {
    margin-bottom: 2rem;
}

.payment-methods label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.method-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.method-radio {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.method-radio input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-label {
    color: var(--text-dark);
    font-weight: 500;
}

.recharge-info {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.recharge-info p {
    margin-bottom: 0.5rem;
}

.recharge-info p:last-child {
    margin-bottom: 0;
}

.recharge-info strong {
    color: var(--red-accent);
}

/* Payment Page */
.payment-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.payment-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
}

.payment-amount {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.payment-amount h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.payment-amount .amount {
    font-size: 2rem;
    color: var(--primary-gold);
    font-weight: bold;
}

.qr-code-section {
    margin-bottom: 2rem;
}

.qr-code-section h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: var(--light-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 1rem;
}

.qr-placeholder svg {
    width: 100%;
    height: 100%;
}

.upi-section {
    margin-bottom: 2rem;
}

#upiButton {
    width: 100%;
}

.utr-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.utr-section label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.utr-section input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Withdraw Page */
.withdraw-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.withdraw-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
}

.withdraw-form {
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.withdraw-info {
    background: #FFE5E5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--red-accent);
    border-left: 4px solid var(--red-accent);
}

.withdraw-info p {
    margin-bottom: 0.5rem;
}

.withdraw-info p:last-child {
    margin-bottom: 0;
}

.withdraw-info strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* History Page */
.history-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.history-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem;
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: var(--primary-gold);
}

.tab-btn.active {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

.history-content {
    display: none;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
}

.history-content.active {
    display: block;
}

.history-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.history-item-info p {
    color: var(--text-light);
    font-size: 0.8rem;
}

.history-item-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.history-item-amount.recharge {
    color: var(--blue-accent);
}

.history-item-amount.withdraw {
    color: var(--red-accent);
}

.history-item-amount.plan {
    color: var(--primary-gold);
}

/* Info Pages */
.info-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.info-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-light);
    font-weight: 600;
}

.info-value {
    color: var(--text-dark);
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light-bg);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-btn:hover {
    background: var(--primary-gold);
}

.modal-plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-plan-header h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.modal-plan-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--primary-gold);
}

.modal-detail {
    text-align: center;
}

.modal-detail-label {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.modal-detail-value {
    color: var(--primary-gold);
    font-size: 1.3rem;
    font-weight: bold;
}

.modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-btn {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.modal-btn:hover {
    transform: translateY(-2px);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--dark-bg);
}

.modal-btn-cancel {
    background: var(--light-bg);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-light);
}

.nav-btn:hover {
    color: var(--primary-gold);
}

.nav-btn.active {
    color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
}

.nav-btn .icon {
    font-size: 1.5rem;
}

.nav-btn span {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Telegram Button Modal */
.telegram-modal {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.telegram-modal h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.telegram-modal p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.telegram-modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .modal-buttons {
        grid-template-columns: 1fr;
    }

    .telegram-modal-buttons {
        grid-template-columns: 1fr;
    }

    .history-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.error {
    color: var(--red-accent);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.success {
    color: #22AA44;

    /* Home Plans Section */
    .home-plans-section {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .tab-buttons {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid var(--border-color);
    }

    .tab-btn {
        padding: 0.8rem 1.5rem;
        background: none;
        border: none;
        border-bottom: 3px solid transparent;
        color: var(--text-light);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 0.95rem;
    }

    .tab-btn:hover {
        color: var(--primary-gold);
    }

    .tab-btn.active {
        color: var(--primary-gold);
        border-bottom-color: var(--primary-gold);
    }

    .plans-tab {
        display: none;
    }

    .plans-tab.active {
        display: block;
    }

    .plans-table {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .table-header {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        gap: 1rem;
        padding: 1rem;
        background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
        color: var(--dark-bg);
        font-weight: 600;
        border-bottom: 2px solid var(--border-color);
    }

    .col-image, .col-details, .col-action {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .table-body {
        display: flex;
        flex-direction: column;
    }

    .plan-row {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        gap: 1rem;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        align-items: center;
        transition: background 0.3s;
    }

    .plan-row:hover {
        background: var(--light-bg);
    }

    .plan-row:last-child {
        border-bottom: none;
    }

    .plan-image-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .plan-image {
        width: 80px;
        height: 80px;
        border-radius: 8px;
        object-fit: cover;
        border: 2px solid var(--primary-gold);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .plan-label {
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 0.3rem 0.6rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .plan-details {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .plan-detail-row {
        display: flex;
        justify-content: space-between;
        padding: 0.4rem 0;
        border-bottom: 1px dotted var(--border-color);
        font-size: 0.9rem;
    }

    .plan-detail-row:last-child {
        border-bottom: none;
    }

    .detail-label {
        color: var(--text-light);
        font-weight: 500;
    }

    .detail-value {
        color: var(--primary-gold);
        font-weight: 600;
    }

    .plan-action {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-buy {
        padding: 0.6rem 1rem;
        background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
        color: var(--dark-bg);
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s;
        font-size: 0.85rem;
    }

    .btn-buy:hover {
        transform: translateY(-2px);
    }

    .btn-buy:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .coming-soon-badge {
        background: var(--red-accent);
        color: white;
        padding: 0.4rem 0.8rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
        text-align: center;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .table-header {
            grid-template-columns: 1fr 1.5fr 1fr;
            padding: 0.8rem;
            font-size: 0.9rem;
        }

        .plan-row {
            grid-template-columns: 1fr 1.5fr 1fr;
            padding: 0.8rem;
            gap: 0.8rem;
        }

        .plan-image {
            width: 70px;
            height: 70px;
        }

        .plan-detail-row {
            font-size: 0.85rem;
        }

        .btn-buy {
            padding: 0.5rem 0.8rem;
            font-size: 0.75rem;
        }
    }

    @media (max-width: 480px) {
        .table-header {
            grid-template-columns: 0.8fr 1.2fr 0.8fr;
            padding: 0.6rem;
            font-size: 0.8rem;
        }

        .plan-row {
            grid-template-columns: 0.8fr 1.2fr 0.8fr;
            padding: 0.6rem;
            gap: 0.6rem;
        }

        .plan-image {
            width: 60px;
            height: 60px;
        }

        .col-image, .col-details, .col-action {
            font-size: 0.75rem;
        }

        .plan-detail-row {
            font-size: 0.8rem;
        }

        .btn-buy {
            padding: 0.4rem 0.6rem;
            font-size: 0.7rem;
        }
    }
    font-size: 0.9rem;
    margin-top: 0.3rem;
}
