
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-light: #334155;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --neutral: #64748b;
}
/* Light theme variables */
body.light-theme {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg-dark: #f1f5f9;
    --bg-card: #ffffff;
    --bg-light: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --neutral: #94a3b8;
}

/* Dark theme variables (default) */
body:not(.light-theme) {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-light: #334155;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --neutral: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100vw;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    
   
}
.header-texter{
    font-size: 16px !important;
}

header {
    background-color: var(--secondary);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100vw;
    max-width: 100%;
   
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        
        
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu.active {
        display: flex;

      
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
 
    
    /* Move theme toggle to the header in mobile view */
    .header-actions {
        display: flex;
        align-items: center;
        margin-right: 1.5%;
    }
    .card{
        margin-top: -5%;
    }
}

/* Adjustment for very small screens */
@media (max-width: 380px) {
    .logo {
        font-size: 1.2rem;
    }
}
/* Improved Header Styles for Mobile */
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
display: block;
background: none;
border: none;
color: var(--text);
font-size: 1.5rem;

}

/* Theme Toggle Positioning */
.theme-toggle {
background: none;
border: none;
font-size: 1.25rem;
cursor: pointer;
color: var(--text);
margin-left: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
}

/* Mobile Menu Styles */
.mobile-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: var(--secondary);
padding: 1rem;
flex-direction: column;
gap: 1rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}
.mobile-menu a {
color: var(--text);
text-decoration: none;
font-weight: 500;
padding: 0.5rem 0;
border-bottom: 1px solid var(--bg-light);
width: 100%;

}

.mobile-menu a:last-child {
border-bottom: none;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text);
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
}
body.light-theme .logo {
    color: #2563eb; /* Or any other color you prefer */
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.status-bar {
    background-color: var(--bg-light);
    padding: 0.5rem 0;
    font-size: 0.85rem;
   
}

.status-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.market-indicators {
    display: flex;
    gap: 1.5rem;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.up {
    color: var(--success);
}

.down {
    color: var(--danger);
}

.grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.column-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-card);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: fit-content;
}

.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-light);
}

.card-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.timeframe-selector {
    display: flex;
    background-color: var(--bg-light);
    border-radius: 0.25rem;
    overflow: hidden;
}

.timeframe-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.timeframe-btn.active {
    background-color: var(--primary);
    color: var(--text);
}

.signal-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signal-card {
    background-color: var(--bg-light);
    border-radius: 0.375rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.signal-buy {
    border-left: 4px solid var(--success);
}

.signal-sell {
    border-left: 4px solid var(--danger);
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.signal-pair {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.signal-flags {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
}

.signal-type {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.signal-buy .signal-type {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.signal-sell .signal-type {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.signal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.signal-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
}

.mini-chart {
    width: 100%;
    height: 50px;
    margin: 0.75rem 0;
    background-color: var(--bg-card);
    border-radius: 0.25rem;
    position: relative;
    overflow: hidden;
}

.signal-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.confidence-bar {
    margin-top: 0.5rem;
    height: 0.5rem;
    background-color: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.confidence-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 1rem;
}

.confidence-high .confidence-fill {
    background-color: var(--success);
}

.confidence-med .confidence-fill {
    background-color: var(--warning);
}

.confidence-low .confidence-fill {
    background-color: var(--danger);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-image {
    width: 80px;
    height: 80px;
    border-radius: 0.25rem;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.news-action {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.leaderboard-list {
    margin-top: 1rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-rank {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
    font-weight: 600;
    margin-right: 0.75rem;
}

.rank-1 {
    background-color: #fbbf24;
    color: #000;
}

.rank-2 {
    background-color: #94a3b8;
    color: #000;
}

.rank-3 {
    background-color: #b45309;
    color: #fff;
}

.leaderboard-user {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
}

.user-stats {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.leaderboard-profit {
    font-weight: 600;
    margin-left: auto;
}

.profit-positive {
    color: var(--success);
}

footer {
    background-color: var(--secondary);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .status-content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .market-indicators {
        flex-wrap: wrap;
    }
    
    .signal-details {
        grid-template-columns: 1fr 1fr;
    }
    .logo{
        padding-left: 2%;
    }
    .card{
        width: 100vw;
    }
    .datetime{
        width: 100vw;
    }

}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
    
    .signal-details {
        grid-template-columns: 1fr;
    }
}

.generate-signals-btn {
    background-color: var(--primary);
    color: var(--text);
    border: none;
    border-radius: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generate-signals-btn:hover {
    background-color: var(--primary-dark);
}

.generate-signals-btn:active {
    transform: scale(0.97);
}

.generate-signals-btn::before {
    content: '↻';
    font-size: 1.2rem;
}

/* Add a loading state */
.generate-signals-btn.loading {
    position: relative;
    color: transparent;
}

.generate-signals-btn.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--text);
    border-radius: 50%;
    border-top-color: transparent;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
body.light-theme .generate-signals-btn {
    color: white !important;
}

.datetime {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--bg-light);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.datetime:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.datetime::before {
    content: '🕒';
    font-size: 1rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

#current-datetime {
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
}

/* For light theme */
body.light-theme .datetime {
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Animation for time update */
@keyframes timeUpdate {
    0% { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.time-update {
    animation: timeUpdate 0.3s ease;
}
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .copyright {
        order: -1; /* Moves copyright to top in mobile */
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-links a {
        padding: 0.5rem 0;
        display: block;
        width: 100%;
    }
}

.signals-button-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Button Styles */
.generate-signals-btn {
    background-color: var(--primary);
    color: var(--text);
    border: none;
    border-radius: 0.375rem;
    padding: 0.625rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.generate-signals-btn.short-term {
    background-color: var(--success);
}

.generate-signals-btn.short-term:hover {
    background-color: #0ea271; /* Darker shade of success color */
}

.generate-signals-btn.long-term {
    background-color: var(--primary);
}

.generate-signals-btn.long-term:hover {
    background-color: var(--primary-dark);
}

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

.generate-signals-btn:active {
    transform: scale(0.97);
}

.generate-signals-btn::before {
    content: '↻';
    font-size: 1.2rem;
}

/* Add a loading state */
.generate-signals-btn.loading {
    position: relative;
    color: transparent;
}

.generate-signals-btn.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--text);
    border-radius: 50%;
    border-top-color: transparent;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .card-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .signals-button-container {
        width: 100%;
        justify-content: space-between;
    }
    
    .generate-signals-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}

/* For very small screens */
@media (max-width: 400px) {
    .signals-button-container {
        flex-direction: column;
        width: 100%;
    }
    
    .generate-signals-btn {
        width: 100%;
    }
}

/* Light theme adjustment */
body.light-theme .generate-signals-btn {
    color: white !important;
}

/* Add this to your existing CSS */
.header-actions {
display: flex;
align-items: center;
}

/* This ensures theme toggle is to the left of hamburger menu */
.theme-toggle {
margin-right: 0.5rem;
}

@media (max-width: 768px) {
.nav-links {
display: none;
}

.mobile-menu-toggle, .theme-toggle {
display: block;
}

.mobile-menu.active {
display: flex;

}
}


/* Add this to your existing CSS */
.access-popup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}

.popup-content {
background-color: var(--bg-card);
border-radius: 12px;
width: 90%;
max-width: 480px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
overflow: hidden;
animation: popupFadeIn 0.4s ease-out;
}

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

.popup-header {
padding: 1.5rem;
border-bottom: 1px solid var(--bg-light);
text-align: center;
}

.popup-logo {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
font-weight: 700;
font-size: 1.5rem;
}

.popup-body {
padding: 1.5rem;
}

.popup-body h2 {
margin-bottom: 0.5rem;
text-align: center;
font-size: 1.5rem;
}

.popup-body p {
text-align: center;
color: var(--text-muted);
margin-bottom: 1.5rem;
}

.pin-container {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 1.5rem;
}

#access-pin {
padding: 0.75rem 1rem;
border-radius: 0.375rem;
border: 1px solid var(--bg-light);
background-color: var(--bg-dark);
color: var(--text);
font-size: 1rem;
text-align: center;
letter-spacing: 0.1em;
}

body.light-theme #access-pin {
background-color: white;
border: 1px solid #e2e8f0;
}

.pin-message {
text-align: center;
font-size: 0.875rem;
min-height: 1.5rem;
}

.pin-message.error {
color: var(--danger);
}

.pin-message.success {
color: var(--success);
}

.subscription-info {
background-color: var(--bg-light);
padding: 1.25rem;
border-radius: 8px;
margin-bottom: 1.5rem;
}

.price-tag {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 1rem;
}

.price {
font-size: 1.5rem;
font-weight: 700;
color: var(--success);
}

.period {
color: var(--text-muted);
font-size: 0.875rem;
}

.features {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.feature-item {
font-size: 0.9rem;
}

.contact-buttons {
display: flex;
flex-direction: column;
gap: 0.75rem;
}

.contact-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem;
border-radius: 0.375rem;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
}

.telegram-btn {
background-color: #0088cc;
color: white;
}

.telegram-btn:hover {
background-color: #0077b5;
}

.whatsapp-btn {
background-color: #25D366;
color: white;
}

.whatsapp-btn:hover {
background-color: #128C7E;
}

body:not(.access-granted) > *:not(#access-popup) {
visibility: hidden;
}

/* For light theme */
body.light-theme .popup-content {
background-color: white;
}

body.light-theme .subscription-info {
background-color: #f1f5f9;
}

@media (max-width: 480px) {
.popup-content {
width: 95%;
max-height: 90vh;
overflow-y: auto;
}

.popup-body {
padding: 1rem;
}

.popup-header {
padding: 1rem;
}

.contact-buttons {
flex-direction: column;
}
}

.subscription-info {
background-color: var(--bg-light);
border-radius: 10px;
margin-bottom: 1.5rem;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(255, 255, 255, 0.05);
}

.subscription-header {
background-color: rgba(0, 0, 0, 0.1);
padding: 1rem;
position: relative;
}

.price-tag {
display: flex;
align-items: baseline;
justify-content: center;
gap: 0.25rem;
}

.price {
font-size: 1.75rem;
font-weight: 700;
color: var(--success);
letter-spacing: -0.5px;
}

.period {
color: var(--text-muted);
font-size: 0.875rem;
}

.subscription-divider {
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
margin-top: 0.75rem;
}

.features {
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}

.feature-item {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 0.9rem;
}

.feature-icon {
display: flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
background-color: var(--success);
color: black;
border-radius: 50%;
font-size: 0.7rem;
font-weight: bold;
flex-shrink: 0;
}

/* Light theme adjustments */
body.light-theme .subscription-info {
background-color: #f8fafc;
border: 1px solid #e2e8f0;
}

body.light-theme .subscription-header {
background-color: rgba(0, 0, 0, 0.02);
}

body.light-theme .subscription-divider {
background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

body.light-theme .feature-icon {
color: white;
}

/* Mobile improvements */
@media (max-width: 480px) {
.subscription-info {
margin-bottom: 1rem;
}

.subscription-header {
padding: 0.75rem;
}

.features {
padding: 0.75rem;
}

.price {
font-size: 1.5rem;
}

.feature-item {
font-size: 0.85rem;
}
}
/* Payment Modal Styles */
.payment-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
display: none;
justify-content: center;
align-items: center;
z-index: 1100;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease;
}

.payment-modal.active {
opacity: 1;
visibility: visible;
}

.payment-modal-content {
background-color: var(--bg-card);
border-radius: 12px;
width: 90%;
max-width: 450px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
overflow: hidden;
transform: translateY(20px);
transition: transform 0.4s ease;
}

.payment-modal.active .payment-modal-content {
transform: translateY(0);
}

.payment-modal-header {
padding: 1.25rem;
border-bottom: 1px solid var(--bg-light);
display: flex;
justify-content: space-between;
align-items: center;
}

.payment-modal-title {
font-size: 1.25rem;
font-weight: 600;
color: var(--text);
margin: 0;
}

.payment-close-btn {
background: none;
border: none;
color: var(--text-muted);
font-size: 1.5rem;
cursor: pointer;
line-height: 1;
transition: color 0.2s;
}

.payment-close-btn:hover {
color: var(--text);
}

.payment-modal-body {
padding: 1.5rem;
}

.payment-form {
display: flex;
flex-direction: column;
gap: 1rem;
}

.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.form-group label {
font-size: 0.9rem;
font-weight: 500;
color: var(--text);
}

.form-control {
padding: 0.75rem 1rem;
border-radius: 8px;
border: 1px solid var(--bg-light);
background-color: var(--bg-dark);
color: var(--text);
font-size: 1rem;
transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.pay-now-btn {
background-color: var(--primary);
color: white;
border: none;
border-radius: 8px;
padding: 0.875rem;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.2s;
display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
margin-top: 0.5rem;
}

.pay-now-btn:hover {
background-color: var(--primary-dark);
}

.payment-method {
margin-top: 1rem;
display: flex;
align-items: center;
gap: 0.75rem;
background: transparent;
padding: 0.75rem;
border-radius: 8px;
}

.payment-method-icon {
background-color: #4CAF50; /* Mpesa green */
color: white;
width: 2.5rem;
height: 2.5rem;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 1rem;
}

.payment-method-details {
flex: 1;
}

.payment-method-name {
font-weight: 600;
display: block;
margin-bottom: 0.25rem;
}

.payment-method-desc {
font-size: 0.85rem;
color: var(--text-muted);
}

/* Update existing subscription button */
.subscribe-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem;
border-radius: 0.375rem;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
background-color: var(--primary);
color: white;
cursor: pointer;
}

.subscribe-btn:hover {
background-color: var(--primary-dark);
transform: translateY(-2px);
}

/* Light theme adjustments */
body.light-theme .form-control {
background-color: white;
border-color: #e2e8f0;
}

body.light-theme .payment-method {
background-color: #f1f5f9;
}

/* Mobile adjustments */
@media (max-width: 480px) {
.payment-modal-content {
width: 95%;
}

.payment-modal-header, 
.payment-modal-body {
padding: 1rem;
}
}



/* Access Key Display Styles */
.access-key-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.85);
display: none; /* Change to none to hide initially */
justify-content: center;
align-items: center;
z-index: 2000;
backdrop-filter: blur(5px);
animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

.access-key-modal {
width: 90%;
max-width: 420px;
background-color: var(--bg-card);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
      0 0 0 1px rgba(255, 255, 255, 0.1);
transform: translateY(0);
animation: slideUp 0.4s ease;
}

@keyframes slideUp {
from { transform: translateY(30px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
#access-key-display.access-key-overlay.show {
display: flex !important;
}
.access-key-header {
padding: 1.25rem 1.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}

.access-key-header h3 {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
color: var(--text);
}

.access-key-close {
background: none;
border: none;
color: var(--text-muted);
font-size: 1.75rem;
line-height: 1;
cursor: pointer;
transition: color 0.2s;
}

.access-key-close:hover {
color: var(--text);
}

.access-key-content {
padding: 1.5rem;
display: flex;
flex-direction: column;
align-items: center;
}

.access-key-content p {
text-align: center;
color: var(--text-muted);
margin-bottom: 1.5rem;
}

.access-key-number {
display: flex;
justify-content: center;
gap: 0.5rem;
margin-bottom: 2rem;
}

.key-digit {
width: 3rem;
height: 3.5rem;
background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.75rem;
font-weight: 700;
color: var(--text);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
animation: pulseIn 0.5s ease;
animation-fill-mode: both;
}

@keyframes pulseIn {
0% { transform: scale(0.9); opacity: 0; }
70% { transform: scale(1.1); }
100% { transform: scale(1); opacity: 1; }
}

.key-digit:nth-child(1) { animation-delay: 0.1s; }
.key-digit:nth-child(2) { animation-delay: 0.2s; }
.key-digit:nth-child(3) { animation-delay: 0.3s; }
.key-digit:nth-child(4) { animation-delay: 0.4s; }
.key-digit:nth-child(5) { animation-delay: 0.5s; }

.access-key-info {
width: 100%;
margin-bottom: 1.5rem;
background-color: rgba(0, 0, 0, 0.2);
border-radius: 12px;
padding: 1rem;
}

.info-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0;
}

.info-icon {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
color: var(--text-muted);
}

.access-key-btn {
background-color: var(--primary);
color: white;
border: none;
border-radius: 10px;
padding: 0.875rem 1.5rem;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
width: 100%;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.access-key-btn:hover {
background-color: var(--primary-dark);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

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

/* Light theme adjustments */
body.light-theme .access-key-modal {
background-color: white;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 
      0 0 0 1px rgba(0, 0, 0, 0.05);
}

body.light-theme .access-key-header {
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .access-key-info {
background-color: #f1f5f9;
}

body.light-theme .key-digit {
background: linear-gradient(145deg, #ffffff, #f1f5f9);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
color: var(--secondary);
text-shadow: none;
}

body.light-theme .info-icon {
background-color: rgba(0, 0, 0, 0.05);
color: var(--neutral);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
.access-key-modal {
width: 95%;
}

.access-key-number {
gap: 0.35rem;
}

.key-digit {
width: 2.5rem;
height: 3rem;
font-size: 1.5rem;
}

.access-key-header,
.access-key-content {
padding: 1.25rem;
}
}



/* Payment Processing Animation */
.payment-processing {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 2000; /* Make sure this is higher than other elements */
backdrop-filter: blur(3px); /* Optional: adds a nice blur effect */
}

/* Make sure the payment modal doesn't have conflicting styles */
.payment-modal.active {
display: flex !important; /* Use !important to override any conflicting styles */
}

.payment-modal {
display: none;
opacity: 1; /* Ensure opacity is set to visible */
visibility: visible; /* Ensure visibility is set to visible */
}

/* For better mobile layout */
@media (max-width: 480px) {
.payment-processing {
padding: 1rem;
}

.spinner {
width: 50px;
height: 50px;
}
}

.spinner {
width: 60px;
height: 60px;
border: 5px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: #25d366;
animation: spin 1s ease-in-out infinite;
margin-bottom: 20px;
}

@keyframes spin {
to { transform: rotate(360deg); }
}

.processing-text {
color: white;
font-size: 1.5rem;
margin-bottom: 10px;
text-align: center;
}

.status-message {
color: #aaa;
font-size: 1.1rem;
text-align: center;
max-width: 80%;
margin: 0 auto;
}

.retry-payment-btn,
.continue-anyway-btn {
margin-top: 20px;
padding: 10px 20px;
background-color: #25d366;
color: white;
border: none;
border-radius: 4px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s;
}

.retry-payment-btn:hover,
.continue-anyway-btn:hover {
background-color: #128c7e;
}

/* Additional payment modal styles */
.payment-modal.active {
display: flex;
}

.payment-modal {
display: none;
}




/* Account Details Section Styles */
.account-details-container {
padding: 2rem 0;
width: 100%;
}

.account-card {
background-color: var(--bg-card);
border-radius: 0.75rem;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
padding: 1.75rem;
margin: 1.5rem 0;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.account-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(to right, var(--primary), var(--primary-dark));
}

/* Card Header */
.account-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--bg-light);
position: relative;
}

.account-card-title {
font-size: 16px;
font-weight: 700;
color: var(--text);
margin: 0;
}
body.light-theme .account-card-title {
    color: #000000 !important;
}
.account-last-updated {
font-size: 0.8rem;
color: var(--text-muted);
}

/* Account info grid layout */
.account-info-grid {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto auto;
gap: 1.5rem;
}

/* Profile Section */
.account-profile-section {
display: flex;
align-items: center;
gap: 1.25rem;
padding: 1.25rem;
background-color: rgba(255, 255, 255, 0.05);
border-radius: 0.75rem;
}

.profile-avatar-container {
flex-shrink: 0;
}

.profile-avatar {
width: 4.5rem;
height: 4.5rem;
border-radius: 50%;
background-color: var(--primary);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: 700;
color: white;
position: relative;
overflow: hidden;
border: 3px solid var(--bg-dark);
}

.avatar-initials {
text-transform: uppercase;
}

.profile-details {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.profile-username {
font-size: 1.25rem;
font-weight: 600;
margin: 0;
color: var(--text);
}

.account-status {
display: flex;
align-items: center;
gap: 0.5rem;
}

.status-indicator {
width: 0.5rem;
height: 0.5rem;
border-radius: 50%;
}

.status-active {
background-color: var(--success);
box-shadow: 0 0 8px var(--success);
}

.status-inactive {
background-color: var(--neutral);
}

.status-suspended {
background-color: var(--danger);
}

.status-text {
font-size: 0.875rem;
color: var(--text);
}

.membership-level {
font-size: 0.8rem;
color: var(--text-muted);
background-color: rgba(255, 255, 255, 0.1);
padding: 0.25rem 0.75rem;
border-radius: 1rem;
display: inline-block;
margin-top: 0.25rem;
}

/* Account Stats Section */
.account-stats-section {
display: flex;
gap: 1rem;
}

.stats-card {
flex: 1;
background-color: rgba(255, 255, 255, 0.05);
border-radius: 0.75rem;
padding: 1.25rem;
display: flex;
align-items: center;
gap: 1rem;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.stats-icon {
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
color: var(--primary);
}

.stats-icon svg {
width: 1.25rem;
height: 1.25rem;
}

.stats-info {
display: flex;
flex-direction: column;
}

.stats-label {
font-size: 0.75rem;
color: var(--text-muted);
}

.stats-value {
font-size: 1.25rem;
font-weight: 700;
color: var(--text);
}

/* Referral Link Section */
.referral-section {
grid-column: span 2;
background-color: rgba(255, 255, 255, 0.05);
border-radius: 0.75rem;
padding: 1.5rem;
position: relative;
}

.referral-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}

.referral-title {
font-size: 1.125rem;
font-weight: 600;
margin: 0;
color: var(--text);
}

.referral-bonus {
font-size: 0.75rem;
padding: 0.25rem 0.75rem;
background-color: rgba(16, 185, 129, 0.2);
color: var(--success);
border-radius: 1rem;
font-weight: 500;
}

.referral-link-container {
display: flex;
gap: 0.5rem;
margin-bottom: 0.5rem;
}

.referral-link-input {
flex: 1;
background-color: var(--bg-dark);
border: 1px solid var(--bg-light);
color: var(--text);
padding: 0.75rem 1rem;
border-radius: 0.5rem;
font-size: 0.875rem;
outline: none;
}

.referral-copy-btn {
background-color: var(--primary);
color: white;
border: none;
border-radius: 0.5rem;
padding: 0 1.25rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s ease;
display: flex;
align-items: center;
gap: 0.5rem;
}

.referral-copy-btn:hover {
background-color: var(--primary-dark);
}

.copy-icon {
width: 1.125rem;
height: 1.125rem;
}

.copy-notification {
background-color: var(--success);
color: white;
padding: 0.5rem 1rem;
border-radius: 0.375rem;
position: absolute;
bottom: 1rem;
right: 1rem;
font-size: 0.875rem;
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.copy-notification.show {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

/* Share Referral Section */
.share-referral-section {
grid-column: span 2;
background-color: rgba(255, 255, 255, 0.05);
border-radius: 0.75rem;
padding: 1.5rem;
}

.share-title {
font-size: 1.125rem;
font-weight: 600;
margin: 0 0 1rem 0;
color: var(--text);
}

.share-buttons {
display: flex;
gap: 1rem;
}

.share-btn {
width: 3rem;
height: 3rem;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: none;
cursor: pointer;
transition: transform 0.2s ease, background-color 0.2s ease;
}

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

.share-twitter {
background-color: #1da1f2;
color: white;
}

.share-facebook {
background-color: #1877f2;
color: white;
}

.share-linkedin {
background-color: #0077b5;
color: white;
}

.share-email {
background-color: var(--primary);
color: white;
}

.share-btn svg {
width: 1.25rem;
height: 1.25rem;
}

/* Light Theme Styles - FIXED VISIBILITY ISSUES */
body.light-theme .account-card {
background-color: white;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

body.light-theme .account-card-title {
color: var(--secondary);
}

body.light-theme .profile-username {
color: var(--secondary);
}

body.light-theme .status-text {
color: var(--secondary);
}

/* Fixed stats-value visibility in light mode */
body.light-theme .stats-value {
color: #0f172a; /* Using dark color for better contrast */
font-weight: 700;
}

body.light-theme .account-profile-section,
body.light-theme .stats-card,
body.light-theme .referral-section,
body.light-theme .share-referral-section {
background-color: #f1f5f9;
}

/* Fixed referral-link-input visibility in light mode */
body.light-theme .referral-link-input {
background-color: white;
border-color: #cbd5e1;
color: #1e293b; /* Darker text color for better contrast */
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.light-theme .stats-icon {
background-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .profile-avatar {
border-color: white;
}

body.light-theme .referral-title,
body.light-theme .share-title {
color: var(--secondary);
}

body.light-theme .membership-level {
background-color: rgba(0, 0, 0, 0.05);
color: #475569; /* Darker text for better visibility */
}

body.light-theme .stats-label {
color: #64748b; /* Darker label color for better readability */
}

/* Responsive Styles */
@media (max-width: 992px) {
.account-info-grid {
grid-template-columns: 1fr;
}

.referral-section,
.share-referral-section {
grid-column: span 1;
}
}

@media (max-width: 768px) {
.account-card {
padding: 1.25rem;
}

.account-profile-section {
flex-direction: column;
text-align: center;
padding: 1rem;
}

.account-status {
justify-content: center;
}

.profile-details {
align-items: center;
}

.account-stats-section {
flex-direction: column;
}

.referral-header {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}

.referral-link-container {
flex-direction: column;
}

.referral-copy-btn {
width: 100%;
justify-content: center;
padding: 0.75rem;
}
}

@media (max-width: 480px) {
.share-buttons {
flex-wrap: wrap;
justify-content: center;
}

.share-btn {
width: 2.75rem;
height: 2.75rem;
}

.copy-notification {
right: 50%;
transform: translateX(50%) translateY(10px);
}

.copy-notification.show {
transform: translateX(50%) translateY(0);
}
}


/* Download Modal Styles */
.pfx-download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.pfx-download-container {
    background-color: var(--bg-card);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.pfx-download-header {
    background-color: var(--primary);
    color: #ffffff;
    padding: 16px 20px;
    position: relative;
}

.pfx-download-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.pfx-download-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.pfx-download-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.pfx-download-body {
    padding: 24px;
    color: var(--text);
}

.pfx-download-content, .pfx-install-instructions {
    transition: opacity 0.3s;
}

.pfx-app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    background-color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfx-app-icon svg {
    width: 50px;
    height: 50px;
    fill: #ffffff;
}

.pfx-app-details {
    text-align: center;
    margin-bottom: 24px;
}

.pfx-app-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pfx-app-version {
    color: var(--text-muted);
    font-size: 14px;
}

.pfx-download-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pfx-download-btn:hover {
    background-color: var(--primary-dark);
}

.pfx-download-btn svg {
    width: 20px;
    height: 20px;
}

.pfx-step {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.pfx-step-number {
    background-color: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 16px;
    margin-top: 2px;
}

.pfx-step-content {
    flex: 1;
}

.pfx-step-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 16px;
}

.pfx-step-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.pfx-done-btn {
    background-color: var(--success);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pfx-done-btn:hover {
    background-color: #0da271;
}

.pfx-hidden {
    display: none;
}

/* Media queries for responsiveness */
@media (max-width: 600px) {
    .pfx-download-container {
        width: 95%;
    }
    
    .pfx-download-body {
        padding: 16px;
    }
    .withdraw-btn {
        width: 100% !important;
    }
}
/* Withdraw Button Styling */

/* Withdraw Button Styling */
.withdraw-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: var(--success);
    color: var(--text);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 12px;
    width: 30%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.withdraw-btn:hover {
    background-color: var(--success);
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.withdraw-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--text);
}

/* Dark theme specific adjustments */
body:not(.light-theme) .withdraw-btn {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    color: #ffffff;
}

/* Light theme specific adjustments */
body.light-theme .withdraw-btn {
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}
.refresh-btn {
    position: absolute;
    
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.refresh-btn:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.refresh-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.refresh-btn.refreshing svg {
    animation: spin 1s linear infinite;
}

.refresh-notification {
    position: absolute;
    top: 1.5rem;
    right: 4.5rem;
    background-color: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.refresh-notification.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}