/* Account Page Styles */

/* Welcome Section */
.welcome-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 24px 32px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.welcome-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.welcome-text h1 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.account-info {
    display: flex;
    align-items: center;
}

.epoints-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 107, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.epoints-display i {
    color: #ff6b6b;
    font-size: 0.9rem;
}

.balance-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.epoints-label {
    color: #cccccc;
    font-size: 0.85rem;
    font-weight: 400;
}

.welcome-actions {
    display: flex;
    gap: 10px;
}

.btn-logout {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.5);
    transform: translateY(-1px);
}

/* Account Navigation */
.account-navigation {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 30px;
    border: 1px solid #333;
    overflow: hidden;
    display: flex;
}

.account-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 250px;
    min-width: 250px;
}

.account-nav-menu li {
    width: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    color: #cccccc;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border-bottom: 1px solid #333;
    background: #2a2a2a;
    width: 100%;
    box-sizing: border-box;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-item:hover {
    background: #ff6b6b;
    color: white;
    transform: translateX(5px);
}

.nav-item.active {
    background: #ff4444;
    color: white;
    border-left: 4px solid #ffffff;
}

.nav-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Account Content */
.account-content {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #333;
    flex: 1;
    margin-left: 20px;
}

.content-section {
    width: 100%;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Account Sections */
.account-section {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #333;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.section-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header i {
    color: #ff6b6b;
}

.character-count {
    background: #ff6b6b;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Character List */
.character-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.character-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.character-card:hover {
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.character-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.character-name h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.character-class {
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.character-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

.character-status.online {
    color: #4caf50;
}

.character-status.offline {
    color: #ff4444;
}

.character-status i {
    font-size: 0.7rem;
}

/* Character Stats */
.character-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #1a1a1a;
    border-radius: 5px;
}

.stat-label {
    color: #cccccc;
    font-size: 0.9rem;
}

.stat-value {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Character Actions */
.character-actions {
    display: flex;
    gap: 10px;
}

.btn-select, .btn-details {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select {
    background: #4caf50;
    color: white;
}

.btn-select:hover {
    background: #45a049;
}

.btn-details {
    background: #2196f3;
    color: white;
}

.btn-details:hover {
    background: #1976d2;
}



/* Forms */
.password-form, .topup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: #cccccc;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 0.9rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #ff6b6b;
}

.form-group select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* Buttons */
.btn-change-password, .btn-topup {
    background: linear-gradient(45deg, #ff6b6b, #ff4444);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-change-password:hover, .btn-topup:hover {
    background: linear-gradient(45deg, #ff4444, #cc3333);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

/* Account Details */
.account-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #cccccc;
    font-size: 0.9rem;
}

.detail-value {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
}

.status-active {
    color: #4caf50 !important;
}

/* Alert Styles (inherited from main CSS) */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .account-navigation {
        flex-direction: column;
    }
    
    .account-nav-menu {
        width: 100%;
        min-width: auto;
    }
    
    .account-content {
        margin-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 20px 24px;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .welcome-text h1 {
        font-size: 1.5rem;
    }
    
    .epoints-display {
        padding: 6px 12px;
    }
    
    .balance-value {
        font-size: 0.9rem;
    }
    
    .epoints-label {
        font-size: 0.8rem;
    }
    
    .welcome-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-logout {
        justify-content: center;
    }
    
    .account-nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 0;
    }
    
    .account-nav-item {
        min-width: 120px;
        border-right: 1px solid #333;
        border-bottom: none;
    }
    
    .account-nav-item:last-child {
        border-right: none;
    }
    
    .account-nav-link {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .character-stats {
        grid-template-columns: 1fr;
    }
    
    .character-actions {
        flex-direction: column;
    }
    
    .btn-character {
        justify-content: center;
    }
}

/* Topup Details Styling */
.topup-details {
    display: block;
    font-size: 0.75rem;
    color: #95a5a6;
    font-weight: normal;
    margin-top: 4px;
    line-height: 1.3;
}

.no-topup {
    color: #95a5a6;
    font-style: italic;
    font-weight: normal;
}

.detail-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

/* Topup Statistics Enhancement */
.topup-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.topup-stat-item {
    text-align: center;
    padding: 10px;
}

.topup-stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
}

.topup-stat-label {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Responsive topup details */
@media (max-width: 768px) {
    .detail-value {
        align-items: flex-start;
        text-align: left;
    }
    
    .topup-details {
        margin-top: 2px;
        font-size: 0.7rem;
    }
    
    .topup-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Ultra Minimalist Character List */
.no-characters {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #95a5a6;
    font-size: 0.7rem;
}

.character-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.character-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.character-avatar {
    width: 24px;
    height: 24px;
    background: #3498db;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.character-avatar i {
    font-size: 0.6rem;
    color: #fff;
}

.character-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.character-name {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    min-width: 60px;
}

.character-class {
    background: #e74c3c;
    color: white;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 0.5rem;
    font-weight: 500;
}

.character-status {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.55rem;
    color: #95a5a6;
}

.character-status.online {
    color: #2ecc71;
}

.character-status.offline {
    color: #e74c3c;
}

.character-status i {
    font-size: 0.4rem;
}

.character-stats {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
}

.stat-label {
    color: #95a5a6;
    font-size: 0.5rem;
}

.stat-value {
    color: #fff;
    font-weight: 500;
    font-size: 0.6rem;
}

.character-actions {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.btn-character {
    padding: 3px 6px;
    border: none;
    border-radius: 2px;
    font-size: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.btn-character.btn-primary {
    background: #27ae60;
    color: #fff;
}

.btn-character.btn-secondary {
    background: #34495e;
    color: #fff;
}

/* Responsive Character Styles */
@media (max-width: 768px) {
    .character-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .character-card {
        padding: 16px;
    }
    
    .character-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .character-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .character-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .character-actions {
        flex-direction: column;
    }
    
    .btn-character {
        justify-content: center;
    }
}

/* Captcha Styles */
.captcha-group {
    margin-bottom: 25px;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.captcha-question {
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.captcha-text {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.captcha-group input[type="number"] {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.captcha-group input[type="number"]:focus {
    border-color: #ff6b6b;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.2);
    outline: none;
}

.captcha-group input[type="number"]::placeholder {
    color: #888;
}

/* Responsive captcha */
@media (max-width: 768px) {
    .captcha-question {
        padding: 12px;
    }
    
    .captcha-text {
        font-size: 1rem;
    }
} 

/* Topup History Styles */
.topup-history-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Shop History Styles */
.shop-history-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.no-transactions {
    text-align: center;
    padding: 4rem 2rem;
    color: #95a5a6;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.no-transactions::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.03) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.no-transactions i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.no-transactions h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.no-transactions p {
    color: #bdc3c7;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transaction-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.transaction-id {
    color: #ffffff;
    font-size: 0.9rem;
}

.transaction-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-status.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.transaction-status.pending {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.transaction-status.failed {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.transaction-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.transaction-details > div {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.transaction-details strong {
    color: #ffffff;
    font-weight: 600;
}

.item-info {
    grid-column: 1 / -1;
}

.item-category {
    color: #95a5a6;
    font-size: 0.8rem;
    font-style: italic;
}

.price-info {
    color: #2ecc71;
    font-weight: 600;
}

.amount-info {
    color: #2ecc71;
    font-weight: 600;
}

.payment-method {
    color: #3498db;
}

.transaction-date {
    color: #95a5a6;
}

.admin-notes {
    color: #f39c12;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Responsive Topup History */
@media (max-width: 768px) {
    .topup-history-container {
        padding: 16px;
    }
}

/* Responsive Shop History */
@media (max-width: 768px) {
    .shop-history-container {
        padding: 16px;
    }
    
    .transaction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .transaction-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .transaction-item {
        padding: 16px;
    }
    
    .no-transactions {
        padding: 3rem 1.5rem;
    }
    
    .no-transactions i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .no-transactions h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .no-transactions p {
        font-size: 0.9rem;
        max-width: 300px;
    }
}

/* Additional Topup History Styles */
.points-info {
    color: #3498db;
    font-weight: 600;
}

.bonus-points {
    color: #e74c3c;
    font-size: 0.9em;
    font-weight: 500;
}

.referral-info {
    color: #9b59b6;
    font-weight: 500;
}

.referral-bonus-info {
    margin-top: 4px;
    color: #f39c12;
    font-size: 0.85em;
    font-style: italic;
}

.referral-bonus-info i {
    margin-right: 4px;
    color: #e67e22;
}