/* Staking Container */
.staking-container {
  background: linear-gradient(135deg, rgba(106, 13, 173, 0.05) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: none;
  border-top: 2px solid #8b5cf6;
  padding: 1.5em 1em;
  min-height: 70vh;
  max-width: 100%;
  margin: 0;
  box-shadow: none;
  color: #e0e0e0 !important;
}

.staking-container, 
.staking-container * {
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

/* Page Header */
.staking-page-header {
    text-align: center;
    margin-bottom: 1.5em;
}

.staking-title {
  text-align: center;
  color: #a78bfa !important;
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 1.5em;
  letter-spacing: 0.5px;
}

.staking-subtitle {
    font-size: 0.75em;
    color: #a39f9f;
    margin: 0;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 3em 1em;
}

.loader {
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1em;
}

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

.loading-state p {
    color: #a39f9f;
    font-size: 0.8em;
}

/* No Data State */
.no-data-state {
    text-align: center;
    padding: 3em 1em;
    color: #a39f9f;
    font-size: 0.85em;
}

/* Zones Wrapper */
.staking-zones-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

/* Individual Zone Card */
.zone-card {
    background: linear-gradient(135deg, #1a1f3a 0%, #232b4d 100%);
    border-radius: 0.6em;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.zone-card.available {
    border-color: rgba(59, 130, 246, 0.3);
}

.zone-card.active {
    border-color: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.zone-card.completed {
    border-color: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

/* Zone Header (Always Visible) */
.zone-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9em 1em;
    cursor: pointer;
    background: rgba(26, 31, 58, 0.6);
    transition: background 0.2s ease;
}

.zone-card-header:hover {
    background: rgba(37, 44, 72, 0.8);
}

.zone-card.active .zone-card-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
}

.zone-card.completed .zone-card-header {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.15));
}

.zone-card-header-left {
    display: flex;
    align-items: center;
    gap: 0.8em;
    flex: 1;
}

.zone-icon {
    font-size: 1.2em;
    width: 1.8em;
    height: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
}

.zone-card.active .zone-icon {
    background: linear-gradient(135deg, #8b5cf6, #f357a8);
}

.zone-card.completed .zone-icon {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.zone-info {
    flex: 1;
}

.zone-name {
    font-size: 0.9em;
    font-weight: bold;
    color: #e0e6f6;
    margin-bottom: 0.2em;
}

.zone-status {
    font-size: 0.7em;
    color: #a39f9f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zone-status.status-pending {
    color: #f59e0b;
    font-weight: bold;
}

.zone-card.active .zone-status {
    color: #8b5cf6;
    font-weight: bold;
}

.zone-card.completed .zone-status {
    color: #4ade80;
    font-weight: bold;
}

.zone-stake-amount {
    font-size: 0.85em;
    color: #3b82f6;
    font-weight: 600;
    margin-right: 0.5em;
}

.zone-stake-amount strong {
    font-size: 1.1em;
}

.zone-stake-amount span {
    font-size: 0.75em;
    color: #a39f9f;
}

.zone-expand-icon {
    font-size: 1em;
    color: #a39f9f;
    transition: transform 0.3s ease;
}

.zone-card.expanded .zone-expand-icon {
    transform: rotate(180deg);
}

/* Zone Body (Expandable Content) */
.zone-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.zone-card.expanded .zone-card-body {
    max-height: 600px;
}

.zone-card-body-content {
    padding: 1em;
    background: rgba(15, 15, 35, 0.5);
}

/* Zone Details */
.zone-details {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    margin-bottom: 1em;
}

.zone-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6em 0.8em;
    background: rgba(26, 31, 58, 0.5);
    border-radius: 0.4em;
    border-left: 3px solid transparent;
}

.zone-detail-row:nth-child(1) {
    border-left-color: #3b82f6;
}

.zone-detail-row:nth-child(2) {
    border-left-color: #8b5cf6;
}

.zone-detail-row:nth-child(3) {
    border-left-color: #f357a8;
}

.zone-detail-row:nth-child(4) {
    border-left-color: #4ade80;
}

.detail-label {
    font-size: 0.75em;
    color: #a39f9f;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.detail-label i {
    color: #8b5cf6;
    font-size: 1.1em;
}

.detail-value {
    font-size: 0.85em;
    color: #e0e6f6;
    font-weight: 600;
}

.reward-highlight {
    color: #8b5cf6;
    font-size: 0.9em;
}

.roi-highlight {
    color: #4ade80;
    font-size: 0.9em;
}

/* Zone Action Section */
.zone-action-section {
    margin-top: 1em;
}

.stake-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border: none;
    padding: 0.8em;
    border-radius: 0.5em;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    transition: all 0.3s ease;
}

.stake-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #f357a8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.5);
}

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

.zone-active-info,
.zone-completed-info {
    text-align: center;
    padding: 0.8em;
    border-radius: 0.5em;
    font-size: 0.8em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.zone-active-info {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.zone-completed-info {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .staking-container {
        padding: 0.8em;
    }
    
    .staking-title {
        font-size: 0.9em;
    }
    
    .staking-subtitle {
        font-size: 0.7em;
    }
    
    .zone-card-header {
        padding: 0.7em 0.8em;
    }
    
    .zone-icon {
        width: 1.6em;
        height: 1.6em;
        font-size: 1.1em;
    }
    
    .zone-name {
        font-size: 0.85em;
    }
    
    .zone-status {
        font-size: 0.65em;
    }
    
    .zone-stake-amount {
        font-size: 0.8em;
    }
    
    .detail-label {
        font-size: 0.7em;
    }
    
    .detail-value {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .staking-container {
        padding: 0.6em;
    }
    
    .staking-title {
        font-size: 0.85em;
    }
    
    .staking-subtitle {
        font-size: 0.65em;
    }
    
    .zone-card-header {
        padding: 0.6em 0.7em;
    }
    
    .zone-icon {
        width: 1.5em;
        height: 1.5em;
        font-size: 1em;
    }
    
    .zone-name {
        font-size: 0.8em;
    }
    
    .zone-status {
        font-size: 0.6em;
    }
    
    .zone-stake-amount {
        font-size: 0.75em;
    }
    
    .zone-card-body-content {
        padding: 0.8em;
    }
    
    .zone-detail-row {
        padding: 0.5em 0.6em;
    }
    
    .detail-label {
        font-size: 0.65em;
    }
    
    .detail-value {
        font-size: 0.75em;
    }
    
    .stake-btn {
        font-size: 0.8em;
        padding: 0.7em;
    }
}
/* Staking Confirmation Modal */
.staking-confirmation-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staking-confirmation-modal.show {
    opacity: 1;
}

.staking-confirmation-content {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(30, 25, 45, 0.95) 100%);
    border: 1px solid #6366f1;
    border-radius: 12px;
    padding: 2em;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 60px rgba(99, 102, 241, 0.3);
    animation: slideUp 0.3s ease;
}

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

.confirmation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    padding-bottom: 1em;
}

.confirmation-header h3 {
    color: #a78bfa;
    font-size: 1.2em;
    margin: 0;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #a39f9f;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #e0e0e0;
}

.confirmation-body {
    margin-bottom: 1.5em;
}

.confirmation-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
    padding: 0.8em;
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid #6366f1;
    border-radius: 4px;
}

.detail-label {
    color: #a39f9f;
    font-size: 0.9em;
}

.detail-value {
    color: #e0e0e0;
    font-weight: 600;
}

.stake-address {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.confirmation-warning {
    background: rgba(245, 158, 11, 0.15);
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    padding: 1em;
    margin-top: 1em;
    color: #fbbf24;
    font-size: 0.9em;
    display: flex;
    gap: 0.8em;
    align-items: flex-start;
}

.confirmation-warning i {
    flex-shrink: 0;
    margin-top: 2px;
}

.confirmation-actions {
    display: flex;
    gap: 1em;
    justify-content: flex-end;
}

.btn-cancel,
.btn-confirm {
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.btn-cancel {
    background: rgba(99, 102, 241, 0.2);
    color: #a78bfa;
    border: 1px solid #6366f1;
}

.btn-cancel:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.btn-confirm {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.btn-confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-confirm:disabled,
.btn-cancel:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Policy Info Button */
.policy-info-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    border: 1px solid #6366f1;
    color: #a78bfa;
    padding: 0.6em 1.2em;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1em;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.policy-info-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5) 0%, rgba(139, 92, 246, 0.5) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Cancellation Policy Modal */
.policy-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1em;
    overflow-y: auto;
}

.policy-modal.show {
    opacity: 1;
}

.policy-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(30, 25, 45, 0.95) 100%);
    border: 1px solid #6366f1;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 60px rgba(99, 102, 241, 0.3);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.policy-header h3 {
    color: #a78bfa;
    font-size: 1.3em;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.policy-close-btn {
    background: none;
    border: none;
    color: #a39f9f;
    font-size: 1.8em;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.policy-close-btn:hover {
    color: #e0e0e0;
}

.policy-body {
    padding: 2em 1.5em;
}

.policy-intro {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid #6366f1;
    padding: 1.2em;
    border-radius: 6px;
    margin-bottom: 2em;
}

.policy-intro p {
    color: #e0e0e0;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.policy-timeline h4 {
    color: #a78bfa;
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 1.5em;
    font-weight: 600;
}

.policy-period {
    display: flex;
    gap: 1.5em;
    margin-bottom: 1.8em;
    padding: 1.2em;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 8px;
    border-left: 4px solid #6366f1;
    transition: all 0.3s ease;
}

.policy-period:hover {
    background: rgba(99, 102, 241, 0.12);
    transform: translateX(5px);
}

.policy-period.complete {
    background: rgba(74, 222, 128, 0.08);
    border-left-color: #4ade80;
}

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

.period-icon.warning {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.period-icon.caution {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.period-icon.safe {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.period-icon.completed {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.period-content {
    flex: 1;
}

.period-title {
    color: #e0e0e0;
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 0.3em;
}

.period-fee {
    color: #a78bfa;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 0.6em;
}

.period-description {
    color: #b0acac;
    font-size: 0.9em;
    line-height: 1.5;
}

.policy-notes {
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid #f59e0b;
    padding: 1.5em;
    border-radius: 8px;
    margin-top: 2em;
}

.policy-notes h4 {
    color: #fbbf24;
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.policy-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-notes li {
    color: #d1d5db;
    font-size: 0.9em;
    line-height: 1.8;
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 0.8em;
}

.policy-notes li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

.policy-notes strong {
    color: #fbbf24;
}

.policy-footer {
    padding: 1.5em;
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    text-align: center;
}

.policy-close-action {
    padding: 0.9em 2em;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.policy-close-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .policy-modal {
        padding: 0.5em;
    }
    
    .policy-modal-content {
        max-height: 95vh;
    }
    
    .policy-header {
        padding: 1.2em;
    }
    
    .policy-header h3 {
        font-size: 1.1em;
    }
    
    .policy-body {
        padding: 1.2em;
    }
    
    .policy-period {
        flex-direction: column;
        gap: 0.8em;
    }
    
    .period-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    
    .policy-info-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.8em;
        padding: 0.5em 1em;
    }
    
    .policy-notes li {
        font-size: 0.85em;
    }
    
    .policy-close-action {
        width: 100%;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .policy-header h3 {
        font-size: 1em;
        gap: 0.5em;
    }
    
    .policy-header h3 i {
        font-size: 1.2em;
    }
    
    .period-title {
        font-size: 0.9em;
    }
    
    .period-fee {
        font-size: 0.85em;
    }
    
    .period-description {
        font-size: 0.85em;
    }
}
/* Promoter Staking Button */
.promoter-staking-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    color: #1f2937;
    padding: 0.7em 1.5em;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1em;
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.promoter-staking-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}

.promoter-staking-btn i {
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .promoter-staking-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.85em;
        padding: 0.6em 1em;
    }
}