/* ===================================
   Account Page - Mobile Optimized
   Matching Dashboard/Analytics Theme
   =================================== */

.account-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    min-height: calc(100vh - 200px);
}

/* ===================================
   Message System
   =================================== */

.account-message {
    position: fixed;
    top: 100px;
    right: 30px;
    max-width: 400px;
    padding: 18px 24px;
    background: linear-gradient(145deg, rgba(13, 31, 45, 0.95) 0%, rgba(26, 58, 82, 0.85) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    border: 2px solid rgba(0, 150, 255, 0.25);
}

.account-message.success {
    border-left: 4px solid #10b981;
}

.account-message.error {
    border-left: 4px solid #ef4444;
}

.message-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.account-message.success .message-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.account-message.error .message-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.message-text {
    flex: 1;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
}

.message-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
}

.message-close:hover {
    color: var(--text);
    transform: rotate(90deg);
}

/* ===================================
   Profile Hero Section
   =================================== */

.profile-hero {
    position: relative;
    margin-bottom: 30px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(13, 31, 45, 0.95) 0%, rgba(26, 58, 82, 0.85) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 150, 255, 0.25);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.6s ease;
}

.profile-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 150, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 150, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 150, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(0, 150, 255, 0.15) 0%, transparent 100%);
}

@keyframes float {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}

.profile-hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 30px;
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.profile-avatar-section {
    position: relative;
}

.avatar-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-ring-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: conic-gradient(from 180deg at 50% 50%, var(--primary) 0deg, #0891b2 120deg, #0e7490 240deg, var(--primary) 360deg);
    border-radius: 50%;
    animation: rotate 3s linear infinite;
    opacity: 0.8;
    filter: blur(15px);
}

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

.profile-avatar-img {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(13, 31, 45, 0.9);
    object-fit: cover;
}

.avatar-status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid rgba(13, 31, 45, 0.9);
}

.avatar-status-dot.active {
    background: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.avatar-status-dot.inactive {
    background: #64748b;
}

.profile-details {
    flex: 1;
    min-width: 0;
}

.profile-username {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(0, 150, 255, 0.5);
    word-wrap: break-word;
}

.profile-discord {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.profile-discord i {
    color: #5865F2;
}

.profile-status-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.15) 0%, rgba(0, 150, 255, 0.08) 100%);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
}

.status-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 150, 255, 0.3);
}

.status-chip i {
    font-size: 0.75rem;
}

.status-chip.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.status-chip.on-leave {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

.status-chip.pending {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.stat-card {
    padding: 18px;
    background: rgba(0, 150, 255, 0.05);
    border: 2px solid rgba(0, 150, 255, 0.2);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(0, 150, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 150, 255, 0.2);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   Quick Actions Bar
   =================================== */

.quick-actions {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(13, 31, 45, 0.95) 0%, rgba(26, 58, 82, 0.85) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 150, 255, 0.25);
    border-radius: 18px;
}

.actions-inner {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0891b2 100%);
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 150, 255, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 150, 255, 0.5);
}

.action-btn.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.action-btn.danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.15) 100%);
    transform: translateY(-3px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-disabled {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(100, 116, 139, 0.1);
    border: 2px solid rgba(100, 116, 139, 0.2);
    border-radius: 12px;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ===================================
   Content Grid
   =================================== */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.content-card {
    background: linear-gradient(145deg, rgba(13, 31, 45, 0.95) 0%, rgba(26, 58, 82, 0.85) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 150, 255, 0.25);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 150, 255, 0.4);
}

.content-card.full-width {
    grid-column: 1 / -1;
}

.content-card.warning-card {
    border-color: rgba(245, 158, 11, 0.3);
}

.card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 150, 255, 0.05);
    border-bottom: 2px solid rgba(0, 150, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.2) 0%, rgba(0, 150, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.5));
}

.header-icon.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: #f59e0b;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

.card-header-modern h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.header-badge {
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 700;
}

.header-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 150, 255, 0.1);
    border: 2px solid rgba(0, 150, 255, 0.2);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(0, 150, 255, 0.2);
    transform: scale(1.1);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.card-content {
    padding: 20px;
}

/* ===================================
   Detail List - MOBILE FIXED
   =================================== */

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    background: rgba(0, 150, 255, 0.05);
    border: 1px solid rgba(0, 150, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    gap: 15px;
    flex-wrap: wrap;
}

.detail-item:hover {
    background: rgba(0, 150, 255, 0.1);
    transform: translateX(4px);
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.detail-label i {
    color: var(--primary);
    width: 20px;
    text-align: center;
    filter: drop-shadow(0 0 8px rgba(0, 150, 255, 0.5));
}

.detail-value {
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: right;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

/* ===================================
   Infractions Modern
   =================================== */

.warnings-grid,
.infractions-history-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.infraction-item-modern {
    background: rgba(0, 150, 255, 0.05);
    border: 2px solid rgba(0, 150, 255, 0.15);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.infraction-item-modern.warning {
    border-left: 4px solid #f59e0b;
}

.infraction-item-modern.strike {
    border-left: 4px solid #ef4444;
}

.infraction-item-modern.history {
    opacity: 0.8;
}

.infraction-item-modern:hover {
    background: rgba(0, 150, 255, 0.08);
    transform: translateX(4px);
}

.infraction-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.infraction-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.infraction-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.infraction-type-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.infraction-type-badge.strike {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.infraction-status-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.infraction-status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.infraction-status-badge.invalid {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}

.infraction-status-badge.expired {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

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

.infraction-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.infraction-reason {
    color: var(--text);
    line-height: 1.6;
    font-weight: 500;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.infraction-notes {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.infraction-issuer,
.infraction-removal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.removal-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.issuer-name {
    color: var(--text);
    font-weight: 600;
}

.removal-reason {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 8px;
    width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ===================================
   LOA Modern
   =================================== */

.loa-list-modern {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loa-item-modern {
    background: rgba(0, 150, 255, 0.05);
    border: 2px solid rgba(0, 150, 255, 0.15);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.3s ease;
}

.loa-item-modern.pending {
    border-left: 4px solid #f59e0b;
}

.loa-item-modern.active,
.loa-item-modern.approved {
    border-left: 4px solid #10b981;
}

.loa-item-modern.denied,
.loa-item-modern.cancelled {
    opacity: 0.7;
}

.loa-item-modern:hover {
    background: rgba(0, 150, 255, 0.08);
    transform: translateX(4px);
}

.loa-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.loa-status-modern {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.loa-status-modern.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.loa-status-modern.active,
.loa-status-modern.approved {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.loa-status-modern.denied {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.loa-status-modern.cancelled {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}

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

.loa-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loa-reason-text {
    color: var(--text);
    font-weight: 500;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.loa-notes-text,
.loa-denial-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.loa-cancel-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.loa-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* ===================================
   Notes Modern
   =================================== */

.notes-list-modern {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.note-item-modern {
    background: rgba(0, 150, 255, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.note-item-modern:hover {
    background: rgba(0, 150, 255, 0.08);
    transform: translateX(4px);
}

.note-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.author-name {
    color: var(--text);
    font-weight: 600;
}

.note-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.note-time {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ===================================
   Loading & Empty States
   =================================== */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 16px;
    color: var(--text-muted);
}

.empty-state-modern {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

.empty-state-modern i {
    font-size: 3rem;
    color: rgba(0, 150, 255, 0.3);
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.3));
}

.empty-state-modern p {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===================================
   Modern Modal
   =================================== */

.modal-overlay-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.loa-modal-modern {
    width: 100%;
    max-width: 900px;
    background: linear-gradient(145deg, rgba(13, 31, 45, 0.98) 0%, rgba(26, 58, 82, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px;
    border-bottom: 2px solid rgba(0, 150, 255, 0.2);
    flex-wrap: wrap;
    gap: 15px;
}

.modal-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.2) 0%, rgba(0, 150, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(0, 150, 255, 0.5));
}

.modal-title-section h2 {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text);
    margin: 0;
}

.modal-close-modern {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close-modern:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

.modal-warning-modern {
    padding: 40px;
    text-align: center;
    color: #f59e0b;
}

.modal-warning-modern i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.loa-form-modern {
    padding: 28px;
}

.form-field {
    margin-bottom: 24px;
}

.form-row-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.form-label-modern i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(0, 150, 255, 0.5));
}

.form-input-modern,
.form-textarea-modern {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 150, 255, 0.05);
    border: 2px solid rgba(0, 150, 255, 0.2);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-input-modern:focus,
.form-textarea-modern:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 150, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
}

.form-textarea-modern {
    resize: vertical;
    min-height: 100px;
}

/* Date Picker */
.date-input-wrapper {
    position: relative;
    width: 100%;
}

.date-picker-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 10001;
    background: linear-gradient(145deg, rgba(13, 31, 45, 0.98) 0%, rgba(26, 58, 82, 0.95) 100%);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 16px;
    padding: 45px 20px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    width: 100%;
    min-width: 340px;
}

.form-row-modern .form-field:last-child .date-picker-dropdown {
    right: 0;
    left: auto;
}

.date-picker-calendar {
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0;
}

.calendar-nav {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 150, 255, 0.1);
    border: 2px solid rgba(0, 150, 255, 0.2);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: rgba(0, 150, 255, 0.2);
}

.calendar-month {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.weekday {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 150, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    padding: 8px;
}

.calendar-day:hover:not(.empty):not(:disabled) {
    background: rgba(0, 150, 255, 0.2);
    border-color: rgba(0, 150, 255, 0.4);
    transform: scale(1.05);
}

.calendar-day.empty {
    cursor: default;
    background: transparent;
}

.calendar-day.today {
    background: rgba(0, 150, 255, 0.15);
    border-color: rgba(0, 150, 255, 0.3);
    color: var(--primary);
    font-weight: 700;
}

.calendar-day:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 0.9rem;
}

.calendar-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: rotate(90deg);
    border-color: rgba(239, 68, 68, 0.5);
}

.modal-actions-modern {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid rgba(0, 150, 255, 0.1);
    flex-wrap: wrap;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.secondary {
    background: rgba(100, 116, 139, 0.1);
    border: 2px solid rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

.modal-btn.secondary:hover {
    background: rgba(100, 116, 139, 0.2);
}

.modal-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0891b2 100%);
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 150, 255, 0.3);
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 150, 255, 0.5);
}

.modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===================================
   Confirmation Dialog
   =================================== */

.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.confirm-modal {
    background: linear-gradient(145deg, rgba(13, 31, 45, 0.98) 0%, rgba(26, 58, 82, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.confirm-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.confirm-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.2) 0%, rgba(0, 150, 255, 0.1) 100%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.confirm-icon {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 15px rgba(0, 150, 255, 0.5));
}

.confirm-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 16px;
}

.confirm-message {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.confirm-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.confirm-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn.secondary {
    background: rgba(100, 116, 139, 0.1);
    border: 2px solid rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

.confirm-btn.secondary:hover {
    background: rgba(100, 116, 139, 0.2);
    transform: translateY(-2px);
}

.confirm-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0891b2 100%);
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 150, 255, 0.3);
}

.confirm-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 150, 255, 0.5);
}

/* ===================================
   Animations
   =================================== */

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */

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

    .form-row-modern {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .account-container {
        padding: 20px 10px 60px;
    }

    .account-message {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }

    .profile-hero-content {
        padding: 30px 20px;
    }

    .profile-main {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-username {
        font-size: 2rem;
    }

    .profile-discord {
        justify-content: center;
        font-size: 0.9rem;
    }

    .profile-status-badges {
        justify-content: center;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .quick-actions {
        padding: 15px;
    }

    .actions-inner {
        width: 100%;
    }

    .action-btn,
    .action-disabled {
        flex: 1;
        justify-content: center;
    }

    .content-grid {
        gap: 20px;
    }

    .card-header-modern {
        padding: 18px 15px;
    }

    .card-content {
        padding: 18px 15px;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .detail-value {
        text-align: left;
        width: 100%;
        padding-left: 32px;
    }

    .loa-modal-modern {
        max-width: 100%;
        margin: 0;
        border-radius: 20px;
    }

    .modal-header-modern {
        padding: 20px 15px;
    }

    .modal-title-section h2 {
        font-size: 1.4rem;
    }

    .loa-form-modern {
        padding: 20px 15px;
    }

    .form-row-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile Calendar Fixes */
    .date-picker-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 30px);
        max-width: 380px;
        min-width: unset;
        padding: 50px 15px 15px;
    }

    .form-row-modern .form-field:last-child .date-picker-dropdown {
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .calendar-header {
        margin-bottom: 15px;
    }

    .calendar-month {
        font-size: 1rem;
    }

    .calendar-nav {
        width: 36px;
        height: 36px;
    }

    .calendar-days {
        gap: 3px;
    }

    .calendar-day {
        font-size: 0.8rem;
        padding: 6px;
    }

    .weekday {
        font-size: 0.75rem;
        padding: 6px;
    }

    .calendar-close-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .modal-actions-modern {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }

    .confirm-actions {
        flex-direction: column;
        width: 100%;
    }

    .confirm-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .account-container {
        padding: 15px 8px 50px;
    }

    .profile-hero-content {
        padding: 25px 15px;
    }

    .avatar-ring,
    .profile-avatar-img {
        width: 100px;
        height: 100px;
    }

    .avatar-status-dot {
        width: 20px;
        height: 20px;
    }

    .profile-username {
        font-size: 1.6rem;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 12px;
    }

    .action-btn,
    .action-disabled {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .card-header-modern h3 {
        font-size: 1.1rem;
    }

    .header-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .modal-title-section h2 {
        font-size: 1.2rem;
    }

    .modal-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    /* Extra small mobile calendar */
    .date-picker-dropdown {
        width: calc(100% - 20px);
        max-width: 320px;
        padding: 45px 12px 12px;
    }

    .calendar-month {
        font-size: 0.95rem;
    }

    .calendar-nav {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .calendar-day {
        font-size: 0.75rem;
        padding: 4px;
    }

    .weekday {
        font-size: 0.7rem;
        padding: 4px;
    }

    .confirm-title {
        font-size: 1.3rem;
    }

    .confirm-message {
        font-size: 0.95rem;
    }
}

/* ===================================
   Accessibility
   =================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.action-btn:focus-visible,
.page-btn:focus-visible,
.modal-btn:focus-visible,
.confirm-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}