.account-page {
    padding: 32px 0;
    background: #f6f8fb;
}

.account-page * {
    box-sizing: border-box;
}

.account-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}


.account-card {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.account-profile-card {
    position: sticky;
    top: 80px;
    padding: 28px 24px;
}

.account-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.account-avatar {
    position: relative;
    width: 152px;
    height: 152px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.16);
    background: #eef2f7;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.account-avatar-edit {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006067, #043c54);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
    cursor: pointer;
}

.account-profile-info {
    text-align: center;
}

.account-name {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    word-break: break-word;
}

.account-email {
    color: #64748b;
    font-size: 14px;
    word-break: break-word;
}

.account-stats {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf1f5;
}

.account-stat-item {
    text-align: center;
}

.account-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1;
}

.account-stat-label {
    margin-top: 6px;
    color: #64748b;
    font-size: 14px;
}

.account-sidebar-actions {
    margin-top: 18px;
    text-align: center;
}

.account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #006067;
    text-decoration: none;
    font-weight: 700;
}

.account-link:hover {
    color: #1d4ed8;
}

.account-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #dbe3ef;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.25s ease;
}

.account-action--primary {
    background: linear-gradient(135deg, #006067, #043c54);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.account-action--primary:hover {
    color: #fff;
    transform: translateY(-1px);
}

.account-action--danger {
    background: linear-gradient(135deg, #ef4444, #f87171);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.2);
}

.account-action--danger:hover {
    color: #fff;
    transform: translateY(-1px);
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.account-action--ghost {
    background: #fff;
    color: #006067;
}

.account-action--ghost:hover {
    color: #1d4ed8;
    border-color: #bfd3ff;
    background: #f8fbff;
}

.account-course-title {
    color: #0f172a;
}

.account-text-muted {
    color: #64748b;
    font-size: 13px;
}

.account-main {
    min-width: 0;
}

.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.account-tab {
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #64748b;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.account-tab:hover {
    border-color: #bfd3ff;
    color: #006067;
    background: #f8fbff;
}

.account-tab.active {
    background: linear-gradient(135deg, #006067, #043c54);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.account-content-card {
    padding: 28px;
}

.account-panel {
    display: none;
}

.account-panel.active {
    display: block;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-grid {
    display: grid;
    gap: 18px;
}

.account-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.account-input {
    display: flex;
    align-items: stretch;
    border: 1px solid #dfe6ef;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: all 0.25s ease;
}

.account-input:hover {
    border-color: #c8d5e6;
}

.account-input:focus-within {
    border-color: #043c54;
}

.account-input-icon {
    width: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #f8fafc;
    border-right: 1px solid #e8eef6;
    font-size: 15px;
}

.account-control {
    width: 100%;
    height: 54px;
    border: 0;
    outline: 0;
    padding: 0 16px;
    font-size: 15px;
    color: #0f172a;
    background: transparent;
}

.account-control::placeholder {
    color: #94a3b8;
}

.account-control[readonly] {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.account-error {
    margin-top: 6px;
    font-size: 13px;
    color: #ef4444;
}

.account-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 54px;
    align-items: center;
}

.account-radio {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.account-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-radio span {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 18px 10px 42px;
    border: 1px solid #dfe6ef;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.account-radio span::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    transition: all 0.25s ease;
}

.account-radio input:checked + span {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #006067;
}

.account-radio input:checked + span::before {
    border-color: #006067;
    background: radial-gradient(circle, #006067 42%, #fff 45%);
}

.account-form-actions {
    padding-top: 6px;
}

.account-submit {
    min-width: 180px;
    height: 50px;
    border: 0;
    border-radius: 14px;
    padding: 0 24px;
    background: linear-gradient(135deg, #006067, #043c54);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
    transition: all 0.25s ease;
}

.account-submit:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #1d4ed8, #006067);
}

.account-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.account-table-wrap {
    overflow-x: auto;
    border: 1px solid #e8edf4;
    border-radius: 18px;
}

.account-orders-mobile {
    display: none;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: #fff;
}

.account-table thead th {
    background: #f8fafc;
    color: #334155;
    text-align: left;
    font-size: 14px;
    font-weight: 800;
    padding: 14px 16px;
    border-bottom: 1px solid #e8edf4;
}

.account-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
    color: #334155;
    vertical-align: top;
}

.account-table tbody tr:hover {
    background: #fcfdff;
}

.account-order-product {
    margin-bottom: 6px;
}

.account-order-product:last-child {
    margin-bottom: 0;
}

.account-order-product b {
    color: #dc2626;
}

.account-course-card {
    padding: 18px;
    border: 1px solid #e8edf4;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.account-course-card + .account-course-card {
    margin-top: 14px;
}

.account-course-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.account-course-card__eyebrow {
    margin-bottom: 6px;
    color: #006067;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-course-card__title {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
}

.account-course-card__meta {
    display: grid;
    gap: 10px;
}

.account-course-card__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px dashed #dbe6ef;
}

.account-course-card__row:first-child {
    border-top: 0;
    padding-top: 0;
}

.account-course-card__row span {
    color: #64748b;
    font-size: 13px;
}

.account-course-card__row strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}

.account-course-card__actions {
    margin-top: 16px;
}

.account-course-card--empty {
    color: #64748b;
    text-align: center;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.account-badge.success {
    background: #dcfce7;
    color: #166534;
}

.account-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.account-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

.account-badge.neutral {
    background: #e2e8f0;
    color: #475569;
}

.d-none {
    display: none;
}

@media (max-width: 1199px) {
    .account-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-profile-card {
        position: relative;
        top: auto;
    }

    .account-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .account-page {
        padding: 20px 0;
    }

    .account-container {
        width: min(100%, calc(100% - 20px));
    }

    .account-content-card,
    .account-profile-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .account-grid-2 {
        grid-template-columns: 1fr;
    }

    .account-tabs {
        gap: 8px;
    }

    .account-tab {
        width: 100%;
        border-radius: 14px;
    }

    .account-name {
        font-size: 20px;
    }

    .account-avatar {
        width: 124px;
        height: 124px;
    }

    .account-radio {
        width: 100%;
    }

    .account-radio span {
        width: 100%;
    }

    .account-submit {
        width: 100%;
    }

    .account-table-wrap {
        display: none;
    }

    .account-orders-mobile {
        display: block;
    }

    .account-course-card {
        padding: 16px;
        border-radius: 18px;
    }

    .account-course-card__head,
    .account-course-card__row {
        flex-direction: column;
    }

    .account-course-card__row {
        gap: 6px;
    }

    .account-course-card__row strong {
        text-align: left;
    }

    .account-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .account-action,
    .account-course-card__actions .account-text-muted {
        width: 100%;
    }
}

.account-field .account-error {
    display: none;
}

.account-field.is-invalid .account-error {
    display: block;
}

.account-field.is-invalid .account-input {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.account-field.is-valid .account-input {
    border-color: #22c55e;
}

.account-field.is-invalid .account-radio-group {
    border-radius: 16px;
}

.account-field.is-invalid .account-radio span {
    border-color: #ef4444;
}

.account-control.input-error {
    color: #0f172a;
}


.social-auth {
    padding-top: 10px;
}

.social-auth__label {
    position: relative;
    margin-bottom: 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.social-auth__label::before,
.social-auth__label::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 95px);
    height: 1px;
    background: #e2e8f0;
    transform: translateY(-50%);
}

.social-auth__label::before {
    left: 0;
}

.social-auth__label::after {
    right: 0;
}

.social-auth__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.social-auth__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.social-auth__btn i {
    font-size: 18px;
    line-height: 1;
}

.social-auth__btn span {
    line-height: 1;
}

.social-auth__btn:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.social-auth__btn--google:hover {
    color: #ea4335;
    background: #fff7f6;
    border-color: rgba(234, 67, 53, 0.2);
}

.social-auth__btn--facebook:hover {
    color: #1877f2;
    background: #f5f9ff;
    border-color: rgba(24, 119, 242, 0.2);
}

@media (max-width: 576px) {
    .social-auth__list {
        grid-template-columns: 1fr;
    }

    .social-auth__label::before,
    .social-auth__label::after {
        width: calc(50% - 80px);
    }
}
