/**
 * My Account Page Styles
 *
 * @package ArkfallGaming
 */

/* Reset the page template's glass container for account pages */
.woocommerce-account .entry-content,
.woocommerce-account .entry-content.glass {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Account Container */
.woocommerce-account .woocommerce {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Main Account Layout */
.woocommerce-MyAccount-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    min-height: 600px;
    align-items: start;
}

/* Force both grid children to align at top and stretch horizontally */
.woocommerce-MyAccount-wrapper > * {
    margin-top: 0 !important;
    align-self: start;
    justify-self: stretch;
}

/* Add spacing from page title to account content - clear fixed nav (top bar 56px + nav ~96px + buffer) */
.woocommerce-account .entry-header {
    padding-top: 140px !important;
    margin-top: 0 !important;
    margin-bottom: 2.5rem !important;
}

@media (max-width: 991px) {
    .woocommerce-MyAccount-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Content Area */
.woocommerce-MyAccount-content {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    min-height: 500px;
    margin: 0 !important;
    align-self: start !important;
    width: 100%;
    min-width: 0;
}

/* Reset margins on first child inside content */
.woocommerce-MyAccount-content > *:first-child,
.woocommerce-MyAccount-content .account-dashboard,
.woocommerce-MyAccount-content .welcome-section {
    margin-top: 0 !important;
}

/* Navigation Sidebar */
.account-navigation,
.woocommerce-MyAccount-navigation {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 1.5rem;
    margin: 0 !important;
    align-self: start !important;
}

.account-navigation .nav-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.account-navigation .nav-header i {
    color: #00d4ff;
    font-size: 1.25rem;
}

.account-navigation .nav-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Navigation Menu */
.account-nav-menu,
.woocommerce-MyAccount-navigation ul,
.account-navigation ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-nav-menu li,
.woocommerce-MyAccount-navigation ul li,
.account-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.account-nav-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.account-nav-menu li a:hover {
    color: #fff;
    background: rgba(0, 212, 255, 0.1);
}

.account-nav-menu li a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.account-nav-menu li a:hover i {
    color: #00d4ff;
}

/* Active State */
.account-nav-menu li.is-active a {
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.account-nav-menu li.is-active a i {
    color: #00d4ff;
}

.account-nav-menu li.is-active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #00d4ff;
    border-radius: 0 3px 3px 0;
}

/* Logout Link */
.account-nav-menu li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: rgba(139, 92, 246, 0.8);
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    border-radius: 0 0 10px 10px;
}

.account-nav-menu li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.account-nav-menu li.woocommerce-MyAccount-navigation-link--customer-logout a i {
    color: rgba(139, 92, 246, 0.6);
}

.account-nav-menu li.woocommerce-MyAccount-navigation-link--customer-logout a:hover i {
    color: #8b5cf6;
}

/* Dashboard Styles */
.account-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
}

.welcome-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.welcome-text h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.welcome-text h2 .user-name {
    color: #00d4ff;
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9375rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

/* Dashboard Cards */
.dashboard-card {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.dashboard-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.dashboard-card-wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .dashboard-card-wide {
        grid-column: span 1;
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header i {
    color: #00d4ff;
    font-size: 1.125rem;
}

.card-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-content {
    padding: 1.25rem;
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.quick-link i {
    color: #00d4ff;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Account Status List */
.account-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.status-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.status-item.linked i {
    color: #22c55e;
}

.status-item.not-linked i {
    color: rgba(255, 255, 255, 0.3);
}

.status-label {
    flex: 1;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-item.linked .status-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-item.not-linked .status-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Card Action Link */
.card-action-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.card-action-link:hover {
    color: #38bdf8;
}

.card-action-link i {
    transition: transform 0.2s ease;
}

.card-action-link:hover i {
    transform: translateX(4px);
}

/* Recent Orders */
.recent-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-order-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.recent-order-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 640px) {
    .recent-order-item {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-number {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #fff;
}

.order-date {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.order-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.order-status.status-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.order-status.status-processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.order-status.status-pending {
    background: rgba(192, 132, 252, 0.2);
    color: #c084fc;
}

.order-status.status-on-hold {
    background: rgba(124, 58, 237, 0.2);
    color: #7c3aed;
}

.order-status.status-cancelled,
.order-status.status-refunded,
.order-status.status-failed {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.order-total {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #00d4ff;
}

.order-view-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.order-view-link:hover {
    color: #fff;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    color: #fff;
}

/* Orders Page */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-orders-table thead {
    background: rgba(0, 0, 0, 0.3);
}

.woocommerce-orders-table th {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-orders-table td {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.woocommerce-orders-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #00d4ff;
    text-decoration: none;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover {
    color: #38bdf8;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-total .amount {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #00d4ff;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover {
    background: #00d4ff;
    color: #fff;
}

/* Forms */
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
    max-width: 600px;
}

.woocommerce-EditAccountForm .woocommerce-form-row,
.woocommerce-address-fields .woocommerce-form-row,
.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
    margin-bottom: 1.25rem;
}

.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.woocommerce-EditAccountForm label .required,
.woocommerce-address-fields label .required {
    color: #8b5cf6;
}

.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.woocommerce-EditAccountForm input:focus,
.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.woocommerce-EditAccountForm button[type="submit"],
.woocommerce-address-fields button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border: none;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-address-fields button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

/* Rust Account Page */
.rust-account-linking {
    width: 100%;
}

.rust-account-linking .account-section {
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.rust-account-linking .account-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1rem 0;
}

.rust-account-linking .account-section h3 i {
    color: #00d4ff;
}

.rust-account-linking .link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.rust-account-linking .link-button:hover {
    background: #00d4ff;
    color: #fff;
    transform: translateY(-2px);
}

.rust-account-linking .link-button.steam {
    background: linear-gradient(135deg, rgba(23, 26, 33, 0.9) 0%, rgba(23, 26, 33, 0.7) 100%);
    border-color: rgba(102, 192, 244, 0.3);
    color: #66c0f4;
}

.rust-account-linking .link-button.steam:hover {
    background: #171a21;
    border-color: #66c0f4;
}

.rust-account-linking .link-button.discord {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2) 0%, rgba(88, 101, 242, 0.1) 100%);
    border-color: rgba(88, 101, 242, 0.3);
    color: #5865f2;
}

.rust-account-linking .link-button.discord:hover {
    background: #5865f2;
    color: #fff;
}

.rust-account-linking .linked-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
}

.rust-account-linking .linked-status i {
    font-size: 1.25rem;
}

.rust-account-linking .linked-status .account-id {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #fff;
    margin-left: auto;
}

/* My Perks Page */
.my-perks-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.my-perks-page .perks-header {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
}

.my-perks-page .perks-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.my-perks-page .perks-header p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.my-perks-page .perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.my-perks-page .perk-card {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.my-perks-page .perk-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
}

.my-perks-page .perk-card .perk-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.my-perks-page .perk-card .perk-icon i {
    font-size: 1.5rem;
    color: #00d4ff;
}

.my-perks-page .perk-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.my-perks-page .perk-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.my-perks-page .perk-card .perk-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    text-transform: uppercase;
}

.my-perks-page .perk-card .perk-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.my-perks-page .perk-card .perk-status.inactive {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* WooCommerce Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.woocommerce-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.woocommerce-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.woocommerce-error {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
    flex-direction: column;
    align-items: flex-start;
}

.woocommerce-error li {
    list-style: none;
}

.woocommerce-message::before,
.woocommerce-info::before {
    font-family: 'remixicon' !important;
}

.woocommerce-message::before {
    content: '\eb7a'; /* Remix check-line */
}

.woocommerce-info::before {
    content: '\ecea'; /* Remix information-line */
}

/* Password Strength */
.woocommerce-password-strength {
    font-size: 0.8125rem;
    padding: 0.5rem 0;
}

.woocommerce-password-strength.short {
    color: #8b5cf6;
}

.woocommerce-password-strength.bad {
    color: #00d4ff;
}

.woocommerce-password-strength.good {
    color: #c084fc;
}

.woocommerce-password-strength.strong {
    color: #22c55e;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .my-account-wrapper {
        gap: 1rem;
    }

    .account-navigation {
        position: static;
        padding: 1rem;
    }

    .account-nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .account-nav-menu li a {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .account-nav-menu li a span {
        display: none;
    }

    .account-nav-menu li a i {
        margin: 0;
    }

    .woocommerce-MyAccount-content {
        padding: 1.25rem;
    }

    .welcome-section {
        flex-direction: column;
        text-align: center;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ACCOUNT LINKING PAGE
   ============================================ */

.rust-account-linking .page-header {
    margin-bottom: 2rem;
}

.rust-account-linking .page-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.rust-account-linking .page-header h2 i {
    color: #00d4ff;
}

.rust-account-linking .page-header p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.account-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.account-section {
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.account-section .section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-section .platform-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.5rem;
}

.account-section .platform-icon.steam {
    background: linear-gradient(135deg, rgba(23, 26, 33, 0.9) 0%, rgba(23, 26, 33, 0.6) 100%);
    color: #66c0f4;
}

.account-section .platform-icon.discord {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3) 0%, rgba(88, 101, 242, 0.1) 100%);
    color: #5865f2;
}

.account-section .platform-info h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem 0;
}

.account-section .platform-info p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.account-section .section-body {
    padding: 1.25rem;
}

/* Linked Status */
.linked-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.linked-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.linked-user .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.linked-user .user-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.125rem;
}

.linked-user .user-avatar.placeholder.discord {
    background: rgba(88, 101, 242, 0.2);
    color: #5865f2;
}

.linked-user .user-info {
    display: flex;
    flex-direction: column;
}

.linked-user .user-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.9375rem;
}

.linked-user .user-id {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

.connection-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.connection-badge.connected {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* Not Linked State */
.not-linked-state {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.not-linked-state p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

/* Action Buttons */
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.action-button.connect {
    width: 100%;
}

.action-button.connect.steam {
    background: linear-gradient(135deg, #171a21 0%, #1b2838 100%);
    border: 1px solid rgba(102, 192, 244, 0.3);
    color: #66c0f4;
}

.action-button.connect.steam:hover {
    border-color: #66c0f4;
    box-shadow: 0 4px 15px rgba(102, 192, 244, 0.3);
    transform: translateY(-2px);
}

.action-button.connect.discord {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: #fff;
}

.action-button.connect.discord:hover {
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

.action-button.unlink {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: rgba(139, 92, 246, 0.8);
}

.action-button.unlink:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.action-button.primary {
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    color: #fff;
}

.action-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.action-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.action-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Benefits Section */
.benefits-section {
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.benefits-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.benefits-header i {
    color: #00d4ff;
    font-size: 1.125rem;
}

.benefits-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

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

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.benefit-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.benefit-icon i {
    color: #00d4ff;
    font-size: 1rem;
}

.benefit-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.benefit-text strong {
    color: #fff;
    font-size: 0.875rem;
}

.benefit-text span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    line-height: 1.4;
}

/* ============================================
   MY PERKS PAGE
   ============================================ */

.my-perks-page .page-header {
    margin-bottom: 2rem;
}

.my-perks-page .page-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.my-perks-page .page-header h2 i {
    color: #00d4ff;
}

.my-perks-page .page-header p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Notice Card */
.notice-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.notice-card.warning {
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.3);
}

.notice-card .notice-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 132, 252, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.notice-card .notice-icon i {
    font-size: 1.25rem;
    color: #c084fc;
}

.notice-card .notice-content strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.notice-card .notice-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
}

.notice-card .notice-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #c084fc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.notice-card .notice-action:hover {
    color: #fcd34d;
}

/* Empty State Card */
.empty-state-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.empty-state-card .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: 50%;
}

.empty-state-card .empty-icon i {
    font-size: 2rem;
    color: #00d4ff;
}

.empty-state-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.empty-state-card p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 1.5rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Perks Section */
.perks-section {
    margin-bottom: 2rem;
}

.perks-section.past {
    opacity: 0.7;
}

.perks-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.perks-section .section-title i {
    color: #22c55e;
    font-size: 1.125rem;
}

.perks-section.past .section-title i {
    color: rgba(255, 255, 255, 0.4);
}

.perks-section .section-title h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.count-badge.muted {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Entitlements Grid */
.entitlements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

/* Entitlement Card */
.entitlement-card {
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.entitlement-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.entitlement-card.active:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

.entitlement-card .card-status-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.entitlement-card.active .card-status-bar {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.entitlement-card.expired .card-status-bar {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.5) 0%, rgba(139, 92, 246, 0.3) 100%);
}

.entitlement-card .card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: transparent;
    border-bottom: none;
}

.entitlement-card .product-info h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem 0;
}

.entitlement-card .server-name {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.entitlement-card .server-name i {
    font-size: 0.75rem;
}

.entitlement-card .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.entitlement-card .status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.entitlement-card .status-badge.expired {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.entitlement-card .status-badge.cancelled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.entitlement-card .card-body {
    padding: 0 1.25rem 1rem;
}

.entitlement-card .detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.entitlement-card .detail-item:last-child {
    border-bottom: none;
}

.entitlement-card .detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

.entitlement-card .detail-label i {
    width: 16px;
    text-align: center;
    font-size: 0.75rem;
}

.entitlement-card .detail-value {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}

.entitlement-card .detail-value.expiring-soon {
    color: #c084fc;
}

.entitlement-card .detail-value.subscription {
    color: #22c55e;
}

.entitlement-card .time-remaining {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    margin-top: 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #22c55e;
}

.entitlement-card .time-remaining.warning {
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
}

.entitlement-card .time-remaining i {
    font-size: 0.875rem;
}

.entitlement-card .card-actions {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.entitlement-card .card-actions .action-button {
    width: 100%;
}

/* ============================================
   VIEW ORDER PAGE
   ============================================ */

/* Order status message */
.woocommerce-MyAccount-content > p:first-child {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #00d4ff;
}

.woocommerce-MyAccount-content > p:first-child mark,
.woocommerce-MyAccount-content mark {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.woocommerce-MyAccount-content > p:first-child .woocommerce-orders-table__cell-order-status,
.woocommerce-MyAccount-content .order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* Section headers in order view */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content .woocommerce-column__title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Order details table */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.woocommerce-table--order-details thead {
    background: rgba(0, 0, 0, 0.3);
}

.woocommerce-table--order-details thead th {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-table--order-details tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.woocommerce-table--order-details tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-table--order-details tbody td a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.woocommerce-table--order-details tbody td a:hover {
    color: #38bdf8;
}

.woocommerce-table--order-details tfoot th,
.woocommerce-table--order-details tfoot td {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9375rem;
}

.woocommerce-table--order-details tfoot th {
    text-align: left;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.woocommerce-table--order-details tfoot td {
    text-align: right;
    color: #fff;
    font-weight: 600;
}

.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 1.125rem;
    color: #00d4ff;
    padding-top: 1rem;
}

/* Order again button */
.woocommerce-MyAccount-content .order-again {
    margin-top: 1rem;
}

.woocommerce-MyAccount-content .order-again .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #00d4ff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-content .order-again .button:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0.2) 100%);
    border-color: #00d4ff;
    transform: translateY(-2px);
}

/* Address columns */
.woocommerce-Addresses,
.woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .woocommerce-Addresses,
    .woocommerce-columns--addresses {
        grid-template-columns: 1fr;
    }
}

.woocommerce-Address,
.woocommerce-column--billing-address,
.woocommerce-column--shipping-address {
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.woocommerce-Address header,
.woocommerce-column__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-Address header h3,
.woocommerce-column__title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.woocommerce-Address address,
.woocommerce-column--billing-address address,
.woocommerce-column--shipping-address address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.woocommerce-Address address p,
.woocommerce-column--billing-address address p,
.woocommerce-column--shipping-address address p {
    margin: 0;
}

/* Orders list table */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-orders-table thead {
    background: rgba(0, 0, 0, 0.3);
}

.woocommerce-orders-table thead th {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-orders-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    vertical-align: middle;
}

.woocommerce-orders-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.woocommerce-orders-table__cell-order-number a {
    color: #00d4ff;
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-orders-table__cell-order-number a:hover {
    color: #38bdf8;
}

.woocommerce-orders-table__cell-order-status {
    text-transform: capitalize;
}

/* Order status badges */
.woocommerce-orders-table__cell-order-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    background: #22c55e;
}

/* Order actions */
.woocommerce-orders-table__cell-order-actions a {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.woocommerce-orders-table__cell-order-actions a:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

.woocommerce-orders-table__cell-order-actions a:last-child {
    margin-right: 0;
}

/* Product quantity */
.product-quantity {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* No orders message */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.woocommerce-MyAccount-content .woocommerce-message::before,
.woocommerce-MyAccount-content .woocommerce-info::before {
    content: '\ecea'; /* Remix information-line */
    font-family: 'remixicon' !important;
    color: #00d4ff;
    font-size: 1.25rem;
}

.woocommerce-MyAccount-content .woocommerce-message a,
.woocommerce-MyAccount-content .woocommerce-info a {
    color: #00d4ff;
    font-weight: 600;
}

/* Download table */
.woocommerce-table--order-downloads {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.woocommerce-table--order-downloads thead th {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.875rem 1rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-table--order-downloads tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.woocommerce-table--order-downloads .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border-radius: 6px;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-table--order-downloads .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* ============================================
   LOGIN / REGISTER FORM STYLES
   ============================================ */

/* Auth Page Container */
.auth-page-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    padding-top: 180px;
}

/* Background Effects */
.auth-bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.auth-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.auth-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* Card Wrapper */
.auth-card-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.375rem;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.auth-tab.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    color: #fff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.auth-tab.active i {
    color: #00d4ff;
}

.auth-tab i {
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

/* Auth Card */
.auth-card {
    display: none;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-card.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Auth Card Header */
.auth-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    margin-bottom: 1.5rem;
}

.auth-logo img,
.auth-logo .custom-logo {
    max-width: 80px;
    height: auto;
}

.auth-logo-fallback {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.auth-logo-fallback span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.auth-card-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.auth-card-header p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9375rem;
}

/* Form Groups */
.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.625rem;
}

.auth-form-group label i {
    color: #00d4ff;
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.auth-form-group label .required {
    color: #8b5cf6;
    margin-left: auto;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"] {
    width: 100%;
    padding: 0.9375rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.auth-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
}

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

.password-input-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Form Options Row */
.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

/* Custom Checkbox */
.remember-me-label {
    display: flex !important;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 !important;
}

.remember-me-label input[type="checkbox"] {
    display: none;
}

.remember-me-label .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    position: relative;
}

.remember-me-label input[type="checkbox"]:checked + .checkmark {
    background: #00d4ff;
    border-color: #00d4ff;
}

.remember-me-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Forgot Password Link */
.forgot-password-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #00d4ff;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

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

.auth-submit-btn i {
    font-size: 1rem;
}

/* Card Footer */
.auth-card-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-card-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

.auth-card-footer a,
.switch-auth-tab {
    color: #00d4ff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-card-footer a:hover,
.switch-auth-tab:hover {
    color: #38bdf8;
}

/* Info Box */
.auth-info-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.auth-info-box i {
    color: #3b82f6;
    font-size: 1rem;
}

.auth-info-box span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Benefits Section */
.auth-benefits {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-benefits h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
}

.auth-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.auth-benefits li i {
    color: #22c55e;
    font-size: 0.875rem;
}

/* Password Strength Meter */
.woocommerce-password-strength {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.woocommerce-password-strength.short {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.woocommerce-password-strength.bad {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.woocommerce-password-strength.good {
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
}

.woocommerce-password-strength.strong {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* WooCommerce Error Messages in Auth Form */
.auth-page-container .woocommerce-error,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-error {
    max-width: 480px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    list-style: none;
}

.auth-page-container .woocommerce-error li,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-error li {
    color: #d8b4fe;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-page-container .woocommerce-error li::before,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-error li::before {
    content: '\ea20'; /* Remix alert-line */
    font-family: 'remixicon' !important;
    color: #8b5cf6;
}

/* WooCommerce Success Messages */
.auth-page-container .woocommerce-message,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-message {
    max-width: 480px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    color: #86efac;
    font-size: 0.9375rem;
}

/* Lost Password Page - Custom Card */
.auth-card-lost-password {
    max-width: 480px;
}

.auth-card-lost-password .woocommerce-ResetPassword {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.auth-card-lost-password .woocommerce-ResetPassword p {
    display: none; /* Hidden since we have custom header text */
}

/* Back to Login Link */
.back-to-login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-to-login-link:hover {
    color: #00d4ff;
}

.back-to-login-link i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.back-to-login-link:hover i {
    transform: translateX(-3px);
}

/* Lost Password Confirmation Page */
.auth-card-confirmation {
    max-width: 520px;
    text-align: center;
}

.auth-card-confirmation .auth-card-header {
    margin-bottom: 1.5rem;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
}

.confirmation-icon i {
    font-size: 2.5rem;
    color: #22c55e;
}

.confirmation-content {
    margin-bottom: 2rem;
}

.confirmation-content > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.confirmation-tips {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}

.confirmation-tips h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem 0;
}

.confirmation-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.confirmation-tips li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.confirmation-tips li i {
    width: 20px;
    text-align: center;
    color: #00d4ff;
    font-size: 0.875rem;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.confirmation-actions .auth-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirmation-actions .auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.try-again-link {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.try-again-link:hover {
    color: #00d4ff;
}

/* Hide default WooCommerce notice on confirmation page since we have custom design */
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-message:first-child {
    display: none;
}

/* Fallback for standard WooCommerce messages */
.woocommerce-account:not(.logged-in) .woocommerce-message {
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

/* Reset Password Form (set new password) - Fallback styles for non-templated pages */
.woocommerce-ResetPassword:not(.auth-card-lost-password .woocommerce-ResetPassword) {
    max-width: 480px;
    margin: 0 auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.woocommerce-ResetPassword:not(.auth-card-lost-password .woocommerce-ResetPassword) p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.woocommerce-ResetPassword:not(.auth-card-lost-password .woocommerce-ResetPassword) .woocommerce-form-row {
    margin-bottom: 1.5rem;
}

.woocommerce-ResetPassword:not(.auth-card-lost-password .woocommerce-ResetPassword) label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.625rem;
}

.woocommerce-ResetPassword:not(.auth-card-lost-password .woocommerce-ResetPassword) input[type="text"],
.woocommerce-ResetPassword:not(.auth-card-lost-password .woocommerce-ResetPassword) input[type="password"] {
    width: 100%;
    padding: 0.9375rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
}

.woocommerce-ResetPassword:not(.auth-card-lost-password .woocommerce-ResetPassword) input[type="text"]:focus,
.woocommerce-ResetPassword:not(.auth-card-lost-password .woocommerce-ResetPassword) input[type="password"]:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.woocommerce-ResetPassword:not(.auth-card-lost-password .woocommerce-ResetPassword) button[type="submit"] {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woocommerce-ResetPassword:not(.auth-card-lost-password .woocommerce-ResetPassword) button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .auth-page-container {
        padding: 1rem;
        padding-top: 160px;
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .auth-card-header h2 {
        font-size: 1.5rem;
    }

    .auth-form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .auth-benefits ul {
        gap: 0.625rem;
    }
}

/* Hide default WooCommerce page structure for login */
.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-wrapper,
.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-navigation {
    display: none;
}

/* Override entry header for auth pages */
.woocommerce-account:not(.logged-in) .entry-header {
    display: none !important;
}

.woocommerce-account:not(.logged-in) .entry-content {
    padding: 0 !important;
    max-width: none !important;
}

.woocommerce-account:not(.logged-in) .woocommerce {
    padding: 0 !important;
    max-width: none !important;
}
