/* Hostyler Account Page Styles */
.hostyler-account-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header Section */
.account-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.user-avatar {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h2 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 600;
}

.user-email {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.stat-item i {
    font-size: 24px;
    margin-right: 15px;
    color: #f0c14b;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

/* Main Content Area */
.account-main {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

/* Navigation */
.account-navigation {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-bottom: 5px;
}

.nav-list li:last-child {
    margin-bottom: 0;
}

.nav-list .nav-item {
    display: flex;
    align-items: center;
    padding: 15px;
    color: #666;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-list .nav-item i {
    width: 20px;
    margin-right: 10px;
    font-size: 16px;
    color: #999;
    transition: color 0.3s ease;
}

.nav-list .nav-item span {
    font-size: 14px;
    font-weight: 500;
}

.nav-list .nav-item:hover {
    background: #f8f8f8;
    color: #333;
}

.nav-list .nav-item:hover i {
    color: #f0c14b;
}

.nav-list .is-active .nav-item {
    background: #1a1a1a;
    color: #fff;
}

.nav-list .is-active .nav-item i {
    color: #f0c14b;
}

/* Content Area */
.account-content {
    flex: 1;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Referral Section */
.referral-section {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.referral-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.referral-header i {
    font-size: 30px;
    color: #f0c14b;
    margin-right: 20px;
}

.referral-text h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #333;
}

.referral-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.referral-link {
    display: flex;
    gap: 10px;
}

.referral-link input {
    flex: 1;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    color: #666;
    background: #f8f8f8;
}

.copy-button {
    display: flex;
    align-items: center;
    padding: 0 25px;
    background: #f0c14b;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: #e3b73d;
    transform: translateY(-2px);
}

.copy-button i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .account-main {
        flex-direction: column;
    }
    
    .account-navigation {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hostyler-account-wrapper {
        padding: 20px 15px;
    }
    
    .account-header {
        padding: 20px;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .user-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar {
        margin: 0 auto 15px;
    }
    
    .referral-link {
        flex-direction: column;
    }
    
    .copy-button {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
}

/* Tables */
.woocommerce-orders-table,
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
}

.woocommerce-orders-table th,
.woocommerce-table--order-details th {
    background: #f8f8f8;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
}

.woocommerce-orders-table td,
.woocommerce-table--order-details td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #666;
}

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

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

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-row input,
.form-row textarea,
.form-row select {
    
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    color: #666;
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    border-color: #f0c14b;
    outline: none;
}

/* Buttons */
.woocommerce-Button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce-Button:hover,
.button:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.woocommerce-message {
    background: #f0faf0;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.woocommerce-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.woocommerce-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    order: 2;
    margin-left: auto;
    padding: 8px 15px;
    font-size: 13px;
}

/* Order Details */
.order-details {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.order-details__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.order-details__item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.order-details__item:last-child {
    border-bottom: none;
}

.order-details__total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .woocommerce-orders-table {
        display: block;
        overflow-x: auto;
    }

    .woocommerce-orders-table td {
        white-space: nowrap;
    }

    .woocommerce-MyAccount-content {
        padding: 20px;
    }
}

/* Dashboard Content */
.woocommerce-dashboard {
    padding: 20px;
}

.dashboard-welcome {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #f0c14b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dashboard-welcome p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.dashboard-welcome a {
    color: #f0c14b;
    text-decoration: none;
    font-weight: 500;
}

.dashboard-welcome a:hover {
    text-decoration: underline;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.dashboard-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: #f8f8f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 24px;
    color: #f0c14b;
}

.card-content h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #333;
}

.dashboard-orders {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
}

.dashboard-orders th {
    text-align: left;
    padding: 12px;
    background: #f8f8f8;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.dashboard-orders td {
    padding: 12px;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

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

.view-all {
    display: inline-block;
    padding: 8px 15px;
    background: #f8f8f8;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.view-all:hover {
    background: #f0c14b;
    color: #000;
}

.balance-info {
    margin-bottom: 20px;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.balance-item .label {
    color: #666;
    font-size: 14px;
}

.balance-item .value {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.no-orders {
    color: #666;
    font-style: italic;
    margin: 0 0 20px;
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-orders {
        display: block;
        overflow-x: auto;
    }
    
    .dashboard-orders td,
    .dashboard-orders th {
        white-space: nowrap;
    }
}
