/* ========================================
   MARKSY - Account Pages Styles
   ======================================== */

/* ========================================
   Account Layout
   ======================================== */

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 80px);
}

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

/* ========================================
   Account Sidebar
   ======================================== */

.account-sidebar {
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .account-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        padding: var(--space-lg);
    }
}

.account-sidebar__user {
    text-align: center;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--space-xl);
}

.account-sidebar__avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
}

.account-sidebar__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--teal);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--teal);
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.avatar-edit-btn svg {
    width: 14px;
    height: 14px;
    color: var(--white);
}

.avatar-edit-btn:hover {
    background: var(--teal-dark);
}

.account-sidebar__user h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.account-sidebar__user p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}

.account-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--teal), var(--turquoise));
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Account Navigation */
.account-nav {
    flex: 1;
}

.account-nav__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--gray-600);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    margin-bottom: var(--space-xs);
}

.account-nav__item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.account-nav__item span {
    flex: 1;
    font-weight: 500;
}

.account-nav__item:hover {
    background: var(--gray-50);
    color: var(--navy);
}

.account-nav__item.active {
    background: rgba(0, 166, 156, 0.1);
    color: var(--teal);
}

.account-nav__badge {
    padding: 2px 8px;
    background: var(--teal);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Sidebar Help */
.account-sidebar__help {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.account-sidebar__help h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.account-sidebar__help p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
}

@media (max-width: 1024px) {
    .account-sidebar__user {
        display: flex;
        align-items: center;
        text-align: left;
        gap: var(--space-md);
        padding-bottom: var(--space-lg);
        margin-bottom: var(--space-lg);
    }
    
    .account-sidebar__avatar {
        width: 60px;
        height: 60px;
        margin: 0;
    }
    
    .avatar-edit-btn {
        display: none;
    }
    
    .account-nav {
        display: flex;
        gap: var(--space-sm);
        overflow-x: auto;
        padding-bottom: var(--space-sm);
    }
    
    .account-nav__item {
        flex-shrink: 0;
        padding: var(--space-sm) var(--space-md);
        margin-bottom: 0;
    }
    
    .account-nav__item span {
        display: none;
    }
    
    .account-sidebar__help {
        display: none;
    }
}

/* ========================================
   Account Main Content
   ======================================== */

.account-main {
    background: var(--gray-50);
    padding: var(--space-2xl);
    overflow-y: auto;
}

@media (max-width: 768px) {
    .account-main {
        padding: var(--space-lg);
    }
}

.account-header {
    margin-bottom: var(--space-2xl);
}

.account-header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.account-header p {
    color: var(--gray-500);
}

/* ========================================
   Form Sections
   ======================================== */

.form-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.form-section--separate {
    margin-top: var(--space-2xl);
}

.form-section--danger {
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-section__header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
}

.form-section__header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.form-section__header p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

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

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

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    font-size: 0.75rem;
    color: var(--success);
}

.form-hint svg {
    width: 14px;
    height: 14px;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-input input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    padding: 4px;
}

.password-toggle:hover {
    color: var(--gray-600);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Password Strength */
.password-strength {
    margin-top: var(--space-sm);
}

.password-strength__bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.password-strength__bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: var(--gray-400);
    transition: width var(--transition-base), background var(--transition-base);
}

.password-strength[data-strength="weak"] .password-strength__bar::after {
    width: 25%;
    background: var(--error);
}

.password-strength[data-strength="fair"] .password-strength__bar::after {
    width: 50%;
    background: var(--warning);
}

.password-strength[data-strength="good"] .password-strength__bar::after {
    width: 75%;
    background: var(--teal);
}

.password-strength[data-strength="strong"] .password-strength__bar::after {
    width: 100%;
    background: var(--success);
}

.password-strength__text {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Password Requirements */
.password-requirements {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.password-requirements p {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

.password-requirements ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
}

@media (max-width: 640px) {
    .password-requirements ul {
        grid-template-columns: 1fr;
    }
}

.requirement {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.requirement svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.requirement.met {
    color: var(--success);
}

.requirement.met svg {
    fill: var(--success);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-100);
}

/* Danger Zone */
.danger-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.danger-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.danger-action__info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.danger-action__info p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

@media (max-width: 640px) {
    .danger-action {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   User Menu (Header)
   ======================================== */

.user-menu {
    position: relative;
}

.user-menu__toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast);
}

.user-menu__toggle:hover {
    background: var(--gray-100);
}

.user-menu__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-menu__name {
    font-weight: 500;
    color: var(--navy);
}

.user-menu__toggle svg {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
}

.user-menu__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.user-menu__dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.user-menu__item svg {
    width: 18px;
    height: 18px;
}

.user-menu__item:hover {
    background: var(--gray-50);
    color: var(--navy);
}

.user-menu__item.active {
    background: rgba(0, 166, 156, 0.1);
    color: var(--teal);
}

.user-menu__item--logout {
    color: var(--error);
}

.user-menu__item--logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.user-menu__divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--space-sm) 0;
}

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

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

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal__content {
    position: relative;
    width: 90%;
    max-width: 480px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.modal.active .modal__content {
    transform: scale(1);
}

.modal__content--large {
    max-width: 640px;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
}

.modal__header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
}

.modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.modal__close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal__close svg {
    width: 20px;
    height: 20px;
}

.modal__body {
    padding: var(--space-xl);
}

.modal__warning {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.modal__warning svg {
    width: 24px;
    height: 24px;
    color: var(--error);
    flex-shrink: 0;
}

.modal__warning p {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

/* ========================================
   Orders Page
   ======================================== */

/* Order Stats */
.order-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

@media (max-width: 1024px) {
    .order-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.order-stat {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.order-stat__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
}

.order-stat__icon svg {
    width: 24px;
    height: 24px;
    color: var(--gray-600);
}

.order-stat__icon--total {
    background: rgba(0, 166, 156, 0.1);
}

.order-stat__icon--total svg {
    color: var(--teal);
}

.order-stat__icon--active {
    background: rgba(245, 158, 11, 0.1);
}

.order-stat__icon--active svg {
    color: var(--warning);
}

.order-stat__icon--completed {
    background: rgba(16, 185, 129, 0.1);
}

.order-stat__icon--completed svg {
    color: var(--success);
}

.order-stat__icon--spent {
    background: rgba(21, 41, 66, 0.1);
}

.order-stat__icon--spent svg {
    color: var(--navy);
}

.order-stat__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.order-stat__label {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Orders Filters */
.orders-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
    .orders-filters {
        flex-direction: column;
        align-items: stretch;
    }
}

.orders-search {
    position: relative;
    flex: 1;
    max-width: 320px;
}

@media (max-width: 768px) {
    .orders-search {
        max-width: none;
    }
}

.orders-search svg {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.orders-search input {
    width: 100%;
    padding: var(--space-sm) var(--space-md) var(--space-sm) 44px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    background: var(--white);
}

.orders-search input:focus {
    outline: none;
    border-color: var(--teal);
}

.orders-filter-group {
    display: flex;
    gap: var(--space-sm);
}

@media (max-width: 768px) {
    .orders-filter-group {
        overflow-x: auto;
        padding-bottom: var(--space-xs);
    }
}

.orders-filter {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    background: var(--white);
    cursor: pointer;
    min-width: 120px;
}

.orders-filter:focus {
    outline: none;
    border-color: var(--teal);
}

/* Orders Table */
.orders-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
}

.orders-table th {
    background: var(--gray-50);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
}

.orders-table td {
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

.orders-table tbody tr:hover {
    background: var(--gray-50);
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.sort-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.sort-btn:hover svg {
    opacity: 1;
}

.order-id {
    font-family: monospace;
    font-weight: 600;
    color: var(--navy);
}

.order-date {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.order-service {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.order-service__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gray-100);
}

.order-service__icon svg {
    width: 16px;
    height: 16px;
}

.order-service__icon--trademark {
    background: rgba(0, 166, 156, 0.1);
    color: var(--teal);
}

.order-service__icon--copyright {
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
}

.order-service__icon--agreement {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.order-mark {
    font-weight: 600;
    color: var(--navy);
}

.order-total {
    font-weight: 600;
    color: var(--navy);
}

.order-total--refunded {
    text-decoration: line-through;
    color: var(--gray-400);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge--pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-badge--processing {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.status-badge--completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge--cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Order Actions */
.order-actions {
    display: flex;
    gap: var(--space-xs);
}

.order-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--gray-500);
    transition: all var(--transition-fast);
}

.order-action-btn svg {
    width: 16px;
    height: 16px;
}

.order-action-btn:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

/* Orders Pagination */
.orders-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 640px) {
    .orders-pagination {
        flex-direction: column;
        gap: var(--space-md);
    }
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

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

.pagination-pages {
    display: flex;
    gap: var(--space-xs);
}

.pagination-page {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-page:hover {
    background: var(--gray-50);
}

.pagination-page.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

/* Responsive Table */
@media (max-width: 1024px) {
    .orders-table-wrapper {
        overflow-x: auto;
    }
    
    .orders-table {
        min-width: 800px;
    }
}

/* ========================================
   Downloads Page
   ======================================== */

/* Download Stats */
.download-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

@media (max-width: 1024px) {
    .download-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.download-stat {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.download-stat__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(0, 166, 156, 0.1);
}

.download-stat__icon svg {
    width: 24px;
    height: 24px;
    color: var(--teal);
}

.download-stat__icon--certificates {
    background: rgba(245, 158, 11, 0.1);
}

.download-stat__icon--certificates svg {
    color: var(--warning);
}

.download-stat__icon--agreements {
    background: rgba(16, 185, 129, 0.1);
}

.download-stat__icon--agreements svg {
    color: var(--success);
}

.download-stat__icon--reports {
    background: rgba(99, 102, 241, 0.1);
}

.download-stat__icon--reports svg {
    color: #6366F1;
}

.download-stat__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.download-stat__label {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Downloads Filters */
.downloads-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
    .downloads-filters {
        flex-direction: column;
        align-items: stretch;
    }
}

.downloads-search {
    position: relative;
    flex: 1;
    max-width: 320px;
}

@media (max-width: 768px) {
    .downloads-search {
        max-width: none;
    }
}

.downloads-search svg {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.downloads-search input {
    width: 100%;
    padding: var(--space-sm) var(--space-md) var(--space-sm) 44px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    background: var(--white);
}

.downloads-search input:focus {
    outline: none;
    border-color: var(--teal);
}

.downloads-filter-group {
    display: flex;
    gap: var(--space-xs);
}

@media (max-width: 768px) {
    .downloads-filter-group {
        overflow-x: auto;
        padding-bottom: var(--space-xs);
    }
}

.filter-tab {
    padding: var(--space-sm) var(--space-lg);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: var(--gray-300);
}

.filter-tab.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

/* Downloads Grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

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

/* Download Card */
.download-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.download-card:hover {
    box-shadow: var(--shadow-md);
}

.download-card--pending {
    opacity: 0.7;
}

.download-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    margin-bottom: var(--space-md);
}

.download-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--gray-600);
}

.download-card__icon--certificate {
    background: rgba(245, 158, 11, 0.1);
}

.download-card__icon--certificate svg {
    color: var(--warning);
}

.download-card__icon--agreement {
    background: rgba(0, 166, 156, 0.1);
}

.download-card__icon--agreement svg {
    color: var(--teal);
}

.download-card__icon--report {
    background: rgba(99, 102, 241, 0.1);
}

.download-card__icon--report svg {
    color: #6366F1;
}

.download-card__icon--invoice {
    background: rgba(21, 41, 66, 0.1);
}

.download-card__icon--invoice svg {
    color: var(--navy);
}

.download-card__content {
    flex: 1;
    margin-bottom: var(--space-md);
}

.download-card__type {
    display: inline-block;
    padding: 2px 8px;
    background: var(--gray-100);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

.download-card__content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.download-card__desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}

.download-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.download-card__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--gray-400);
}

.download-card__meta svg {
    width: 12px;
    height: 12px;
}

.download-card__pending {
    color: var(--warning) !important;
}

.download-card__actions {
    display: flex;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-100);
}

.download-card__actions .btn {
    flex: 1;
}

.download-card__actions .btn svg {
    width: 16px;
    height: 16px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

/* Downloads Empty State */
.downloads-empty {
    text-align: center;
    padding: var(--space-3xl);
    background: var(--white);
    border-radius: var(--radius-xl);
}

.downloads-empty svg {
    width: 64px;
    height: 64px;
    color: var(--gray-300);
    margin-bottom: var(--space-lg);
}

.downloads-empty h3 {
    font-size: 1.125rem;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.downloads-empty p {
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}

/* ========================================
   Settings Page
   ======================================== */

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.settings-tab svg {
    width: 18px;
    height: 18px;
}

.settings-tab:hover {
    border-color: var(--gray-300);
}

.settings-tab.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

/* Settings Panel */
.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

/* Settings Section */
.settings-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.settings-section__header {
    margin-bottom: var(--space-xl);
}

.settings-section__header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.settings-section__header p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Settings Options */
.settings-options {
    display: flex;
    flex-direction: column;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.setting-item:first-child {
    padding-top: 0;
}

.setting-item__info {
    flex: 1;
}

.setting-item__info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
}

.setting-item__info p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.setting-item__note {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-left: var(--space-sm);
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    border-radius: 28px;
    transition: var(--transition-fast);
}

.toggle__slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .toggle__slider {
    background-color: var(--teal);
}

.toggle input:checked + .toggle__slider::before {
    transform: translateX(20px);
}

.toggle input:disabled + .toggle__slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Security Card */
.security-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .security-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.security-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(0, 166, 156, 0.1);
    flex-shrink: 0;
}

.security-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--teal);
}

.security-card__icon--disabled {
    background: var(--gray-200);
}

.security-card__icon--disabled svg {
    color: var(--gray-400);
}

.security-card__content {
    flex: 1;
}

.security-card__content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.security-card__content p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}

.security-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.security-status svg {
    width: 16px;
    height: 16px;
}

.security-status--enabled {
    color: var(--success);
}

.security-status--disabled {
    color: var(--gray-400);
}

/* Sessions List */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.session-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.session-item--current {
    background: rgba(0, 166, 156, 0.05);
    border: 1px solid rgba(0, 166, 156, 0.2);
}

.session-item__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.session-item__icon svg {
    width: 20px;
    height: 20px;
    color: var(--gray-500);
}

.session-item__info {
    flex: 1;
}

.session-item__info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

.session-item__info p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.session-item__time {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.session-item__badge {
    padding: 4px 10px;
    background: var(--teal);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Login History */
.login-history {
    display: flex;
    flex-direction: column;
}

.login-history__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-100);
}

.login-history__item:last-child {
    border-bottom: none;
}

.login-history__status {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.login-history__status svg {
    width: 18px;
    height: 18px;
}

.login-history__status--success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.login-history__status--warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.login-history__status--error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.login-history__info {
    flex: 1;
}

.login-history__action {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
}

.login-history__details {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.login-history__time {
    font-size: 0.75rem;
    color: var(--gray-400);
    white-space: nowrap;
}

/* Data Actions */
.data-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.data-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.data-action__info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
}

.data-action__info p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

@media (max-width: 640px) {
    .data-action {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.payment-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
}

.payment-card--default {
    border-color: var(--teal);
    background: rgba(0, 166, 156, 0.05);
}

.payment-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-md);
}

.payment-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--navy);
}

.payment-card__info {
    flex: 1;
}

.payment-card__info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy);
}

.payment-card__info p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.payment-card__badge {
    padding: 4px 10px;
    background: var(--teal);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 50px;
}

.payment-card__actions {
    display: flex;
    gap: var(--space-sm);
}

@media (max-width: 768px) {
    .payment-card {
        flex-wrap: wrap;
    }
    
    .payment-card__actions {
        width: 100%;
        margin-top: var(--space-sm);
    }
}

.add-payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: none;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    color: var(--gray-500);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.add-payment-btn svg {
    width: 20px;
    height: 20px;
}

.add-payment-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

/* Billing Address */
.billing-address {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.billing-address__content p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .billing-address {
        flex-direction: column;
    }
}

/* Billing History */
.billing-history {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-lg);
}

.billing-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.billing-item__info {
    flex: 1;
}

.billing-item__id {
    display: block;
    font-family: monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

.billing-item__date {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.billing-item__amount {
    font-weight: 600;
    color: var(--navy);
}

.billing-item__status {
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 50px;
}

.billing-item__status--paid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.billing-item__status--pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Settings Save Bar */
.settings-save-bar {
    position: fixed;
    bottom: 0;
    left: 280px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-2xl);
    background: var(--navy);
    color: var(--white);
    z-index: 100;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.settings-save-bar__actions {
    display: flex;
    gap: var(--space-md);
}

@media (max-width: 1024px) {
    .settings-save-bar {
        left: 0;
    }
}

/* ========================================
   Footer Minimal
   ======================================== */

.footer--minimal {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: var(--space-lg) 0;
}

.footer--minimal .footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: none;
}

.footer__links-inline {
    display: flex;
    gap: var(--space-lg);
}

.footer__links-inline a {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer__links-inline a:hover {
    color: var(--teal);
}

@media (max-width: 640px) {
    .footer--minimal .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ========================================
   Button Variants
   ======================================== */

.btn--danger {
    background: var(--error);
    color: var(--white);
    border-color: var(--error);
}

.btn--danger:hover {
    background: #DC2626;
    border-color: #DC2626;
}

.btn--outline.btn--danger {
    background: transparent;
    color: var(--error);
    border-color: var(--error);
}

.btn--outline.btn--danger:hover {
    background: var(--error);
    color: var(--white);
}

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