/**
 * 前端樣式表
 * 傑特漫資訊科技我的帳號、登陸頁面外掛
 */

/* ============================================
   Material Icons 設定
   ============================================ */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
    line-height: 1;
}

/* ============================================
   通用樣式
   ============================================ */

.gentleman-form-group {
    margin-bottom: 2rem;
}

.gentleman-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

.gentleman-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #1f2937;
}

.gentleman-form-control:focus {
    outline: none;
    border-color: #136dec;
    box-shadow: 0 0 0 3px rgba(19, 109, 236, 0.1);
}

.gentleman-form-control:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    color: #6b7280;
}

.gentleman-form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.gentleman-required {
    color: #dc2626;
}

.gentleman-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}

.gentleman-form-row .gentleman-form-group {
    margin-bottom: 0;
}

.gentleman-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.gentleman-profile-form .gentleman-form-actions {
    grid-column: 1 / -1;
}

/* ============================================
   按鈕樣式
   ============================================ */

.gentleman-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.gentleman-btn-primary {
    background-color: #136dec;
    color: #fff;
}

.gentleman-btn-primary:hover {
    background-color: #0f5bc4;
    color: #fff;
}

.gentleman-btn-secondary {
    background-color: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.gentleman-btn-secondary:hover {
    background-color: #f9fafb;
    color: #374151;
}

.gentleman-btn-block {
    display: block;
    width: 100%;
}

.gentleman-btn-small {
    padding: 0.5625rem 1rem;
    font-size: 0.875rem;
}

.gentleman-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   表單訊息
   ============================================ */

.gentleman-form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: none;
}

.gentleman-form-message.show {
    display: block;
}

.gentleman-form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.gentleman-form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============================================
   登入頁面
   ============================================ */

.gentleman-login-page-wrapper {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f6f7f8 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
}

.gentleman-login-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    min-height: 70vh;
}

/* 左側裝飾區塊 */
.gentleman-login-left {
    width: 50%;
    background: linear-gradient(145deg, #97d4f6 0%, #d2ecff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.25rem;
    position: relative;
    overflow: hidden;
}

.gentleman-login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.3)"/></svg>') repeat;
    opacity: 0.3;
}

.gentleman-login-left-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 360px;
    width: 100%;
}

.gentleman-login-logo {
    width: clamp(160px, 65%, 220px);
    margin: 0 auto 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 1rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.gentleman-login-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.gentleman-login-left-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.25rem 0;
    text-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.gentleman-login-left-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 右側表單區塊 */
.gentleman-login-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem;
    background-color: #ffffff;
}

.gentleman-login-form-wrapper {
    width: 100%;
    max-width: 440px;
}

.gentleman-login-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.gentleman-login-company {
    font-size: 1.25rem;
    font-weight: 700;
    color: #136dec;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.gentleman-login-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gentleman-login-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.gentleman-login-form {
    width: 100%;
}

.gentleman-login-alert {
    margin-bottom: 1.75rem;
    padding: 1.1rem 1.5rem;
    border-radius: 0.85rem;
    font-size: 0.95rem;
    line-height: 1.5;
    background: rgba(6, 199, 85, 0.08);
    color: #0a6b37;
    border: 1px solid rgba(6, 199, 85, 0.2);
}

.gentleman-login-alert.error {
    background: rgba(233, 64, 87, 0.08);
    color: #b71c1c;
    border-color: rgba(233, 64, 87, 0.2);
}

.gentleman-social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.gentleman-line-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #00c03a 0%, #00ad31 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 12px 20px -10px rgba(0, 160, 55, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gentleman-line-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -12px rgba(0, 160, 55, 0.55);
    background: linear-gradient(135deg, #00d23f 0%, #00b536 100%);
    color: #ffffff;
}

.gentleman-line-login-btn .material-symbols-outlined {
    font-size: 1.4rem;
    font-variation-settings: 'wght' 600;
}

.gentleman-social-divider {
    position: relative;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(60, 66, 87, 0.6);
    letter-spacing: 0.02em;
}

.gentleman-social-divider::before,
.gentleman-social-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: linear-gradient(90deg, rgba(60, 66, 87, 0.08), rgba(60, 66, 87, 0.3));
}

.gentleman-social-divider::before {
    left: 0;
}

.gentleman-social-divider::after {
    right: 0;
}

.gentleman-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gentleman-input-icon {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 20px;
    pointer-events: none;
    z-index: 1;
}

.gentleman-input-with-icon {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
    height: 3.5rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.gentleman-input-with-icon:focus {
    background-color: #ffffff;
    border-color: #136dec;
    box-shadow: 0 0 0 3px rgba(19, 109, 236, 0.1);
}

.gentleman-password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 1;
}

.gentleman-password-toggle:hover {
    color: #136dec;
}

.gentleman-password-toggle .material-symbols-outlined {
    font-size: 20px;
}

.gentleman-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.gentleman-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    font-size: 0.875rem;
    color: #475569;
}

.gentleman-checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
    cursor: pointer;
}

.gentleman-forgot-password {
    font-size: 0.875rem;
    font-weight: 500;
    color: #136dec;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gentleman-forgot-password:hover {
    color: #0d5bc4;
    text-decoration: underline;
}

.gentleman-btn-login {
    height: 3.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    transition: all 0.2s ease;
}

.gentleman-btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19, 109, 236, 0.3);
}

/* 響應式設計 */
@media (max-width: 968px) {
    .gentleman-login-container {
        flex-direction: column;
        min-height: auto;
        max-width: 640px;
        border-radius: 1rem;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    }
    
    .gentleman-login-left {
        width: 100%;
        min-height: 220px;
        padding: 2rem;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .gentleman-login-logo {
        width: clamp(150px, 60%, 220px);
        margin-bottom: 1.75rem;
        padding: 1.1rem 1.3rem;
    }
    
    .gentleman-login-left-title {
        font-size: 1.6rem;
    }
    
    .gentleman-login-right {
        width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .gentleman-login-page-wrapper {
        padding: 0.85rem;
    }

    .gentleman-login-container {
        border-radius: 0.9rem;
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
        max-width: 560px;
    }

    .gentleman-login-left {
        padding: 1.75rem;
        min-height: 200px;
    }

    .gentleman-login-right {
        padding: 1.75rem;
    }

    .gentleman-login-form-wrapper {
        max-width: 100%;
    }

    .gentleman-line-login-btn {
        padding: 0.95rem 1.1rem;
        font-size: 1rem;
    }

    .gentleman-form-group {
        margin-bottom: 1.25rem;
    }

    .gentleman-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.95rem;
    }

    .gentleman-stat-card {
        min-height: 0;
        aspect-ratio: 1 / 1;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        text-align: center;
    }

    .gentleman-stat-icon {
        width: 44px;
        height: 44px;
    }

    .gentleman-stat-icon .material-symbols-outlined {
        font-size: 24px;
    }

    .gentleman-stat-value {
        font-size: 1.6rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gentleman-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .gentleman-stat-card {
        padding: 0.9rem;
        gap: 0.25rem;
    }

    .gentleman-stat-value {
        font-size: 1.45rem;
    }

    .gentleman-stat-label {
        font-size: 0.75rem;
    }
    .gentleman-login-page-wrapper {
        padding: 0.6rem;
    }

    .gentleman-login-container {
        border-radius: 0.8rem;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    }

    .gentleman-login-left {
        padding: 1.4rem;
        min-height: 180px;
    }

    .gentleman-login-logo {
        width: clamp(150px, 70%, 210px);
        margin-bottom: 1.75rem;
        padding: 1rem 1.25rem;
    }

    .gentleman-login-left-title {
        font-size: 1.4rem;
    }

    .gentleman-login-left-subtitle {
        font-size: 0.9rem;
    }

    .gentleman-login-right {
        padding: 1.5rem;
    }

    .gentleman-login-title {
        font-size: 1.75rem;
    }

    .gentleman-login-subtitle {
        font-size: 0.9rem;
    }

    .gentleman-social-login {
        margin-bottom: 1.75rem;
    }

    .gentleman-line-login-btn {
        gap: 0.5rem;
        padding: 0.9rem 1rem;
    }
}

.gentleman-login-status,
.gentleman-login-required {
    text-align: center;
    padding: 2rem;
    background-color: #f6f7f8;
    border-radius: 0.75rem;
}

.gentleman-login-status p,
.gentleman-login-required p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ============================================
   我的帳號頁面 - 主要佈局
   ============================================ */

.gentleman-account-page-wrapper {
    width: 100% !important;
    min-height: 100vh !important;
    background-color: #f6f7f8 !important;
    font-family: 'Inter', 'Noto Sans TC', sans-serif !important;
    box-sizing: border-box !important;
}

.gentleman-account-layout {
    display: flex !important;
    flex-direction: row !important;
    min-height: 100vh !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ============================================
   側邊欄樣式
   ============================================ */

.gentleman-account-sidebar {
    width: 256px !important;
    min-width: 256px !important;
    max-width: 256px !important;
    flex-shrink: 0 !important;
    background-color: #fff !important;
    border-right: 1px solid #e5e7eb !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

.gentleman-sidebar-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 2.5rem 1.75rem;
}

.gentleman-sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 用戶資訊 */
.gentleman-user-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0.75rem;
    margin-bottom: 3rem;
}

.gentleman-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.gentleman-user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.5rem;
}

.gentleman-user-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gentleman-user-email {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 導航選單 */
.gentleman-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 3rem;
}

.gentleman-nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
}

.gentleman-nav-item .material-symbols-outlined {
    color: #374151;
    font-size: 20px;
}

.gentleman-nav-item:hover {
    background-color: #f3f4f6;
    color: #136dec;
}

.gentleman-nav-item:hover .material-symbols-outlined {
    color: #136dec;
}

.gentleman-nav-active {
    background-color: rgba(19, 109, 236, 0.1);
    color: #136dec;
}

.gentleman-nav-active .material-symbols-outlined {
    color: #136dec;
}

.gentleman-sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
}

.gentleman-nav-logout {
    margin-top: 0;
}

/* ============================================
   主內容區樣式
   ============================================ */

.gentleman-account-main {
    flex: 1 !important;
    flex-grow: 1 !important;
    padding: 3rem 2.25rem 4rem !important;
    background-color: #f6f7f8 !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    display: block !important;
}

.gentleman-main-container {
    max-width: 2048px;
    margin: 0 auto;
}

/* 歡迎區塊 */
.gentleman-welcome-section {
    margin-bottom: 4rem;
}

.gentleman-welcome-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #111827;
    margin: 0 0 1.25rem 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.gentleman-welcome-desc {
    font-size: 1.0625rem;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.8;
    margin: 0;
    padding-right: 1rem;
    max-width: 800px;
}

/* 區塊樣式 */
.gentleman-account-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 3rem;
    overflow: hidden;
    position: relative;
}

.gentleman-account-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #136dec 0%, #3b82f6 50%, #60a5fa 100%);
}

.gentleman-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    padding: 2.25rem 2rem;
    border-bottom: 2px solid #e2e8f0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    background: #ffffff;
    position: relative;
}

.gentleman-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 2rem;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #136dec, #3b82f6);
    border-radius: 2px;
}

.gentleman-profile-form,
.gentleman-password-form {
    width: 100%;
    padding: 2.75rem 2rem;
    background: #ffffff;
}

/* 地址管理 */
.gentleman-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.gentleman-address-card {
    padding: 2rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.gentleman-address-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.gentleman-address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.gentleman-address-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.gentleman-address-content {
    font-style: normal;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.75;
    margin: 0;
    white-space: pre-line;
}

.gentleman-address-edit-form {
    padding: 2rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

.gentleman-dashboard-content {
    padding: 2rem 1rem;
}

/* 統計卡片樣式 */
.gentleman-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gentleman-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.gentleman-stat-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gentleman-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gentleman-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gentleman-stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.gentleman-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.gentleman-stat-card.gentleman-stat-loading {
    opacity: 0.6;
}

.gentleman-stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gentleman-stat-icon .material-symbols-outlined {
    color: #fff;
    font-size: 28px;
}

.gentleman-stat-content {
    flex: 1;
    min-width: 0;
}

.gentleman-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.gentleman-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 快速操作按鈕樣式 */
.gentleman-quick-actions {
    margin-bottom: 3rem;
}

.gentleman-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gentleman-action-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    cursor: pointer;
}

.gentleman-action-card:hover {
    border-color: #136dec;
    background: #f0f7ff;
    color: #136dec;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gentleman-action-card .material-symbols-outlined {
    font-size: 32px;
    color: #136dec;
}

.gentleman-action-card:hover .material-symbols-outlined {
    color: #0f5bc4;
}

.gentleman-action-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* 活動時間軸樣式 */
.gentleman-recent-activities {
    margin-top: 3rem;
}

.gentleman-activities-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    display: none;
}

.gentleman-timeline {
    position: relative;
    padding-left: 2rem;
}

.gentleman-timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.gentleman-timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 3px solid #136dec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gentleman-timeline-marker .material-symbols-outlined {
    font-size: 20px;
    color: #136dec;
}

.gentleman-timeline-item.activity-order .gentleman-timeline-marker {
    border-color: #667eea;
}

.gentleman-timeline-item.activity-order .gentleman-timeline-marker .material-symbols-outlined {
    color: #667eea;
}

.gentleman-timeline-item.activity-repair .gentleman-timeline-marker {
    border-color: #f5576c;
}

.gentleman-timeline-item.activity-repair .gentleman-timeline-marker .material-symbols-outlined {
    color: #f5576c;
}

.gentleman-timeline-line {
    position: absolute;
    left: -1.8rem;
    top: 40px;
    width: 2px;
    height: calc(100% - 40px);
    background: #e5e7eb;
    z-index: 1;
}

.gentleman-timeline-item:last-child .gentleman-timeline-line {
    display: none;
}

.gentleman-timeline-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.gentleman-timeline-content:hover {
    border-color: #136dec;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gentleman-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.gentleman-timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
}

.gentleman-timeline-date {
    font-size: 0.8125rem;
    color: #6b7280;
    white-space: nowrap;
}

.gentleman-timeline-description {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.gentleman-timeline-link {
    display: inline-block;
    font-size: 0.8125rem;
    color: #136dec;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
}

.gentleman-timeline-link:hover {
    color: #0f5bc4;
    text-decoration: underline;
}

.gentleman-empty-state {
    color: #6b7280;
    text-align: center;
    padding: 3rem 2rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
}

/* 訂單列表樣式 */
.gentleman-recent-orders {
    width: 100%;
}

.gentleman-orders-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    display: none;
}

.gentleman-orders-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gentleman-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.gentleman-orders-table thead {
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.gentleman-orders-table th {
    padding: 1.125rem 0.875rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gentleman-orders-table td {
    padding: 1.25rem 0.875rem;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    vertical-align: middle;
    font-size: 0.9375rem;
}

.gentleman-orders-table tbody tr:hover {
    background-color: #f9fafb;
}

.gentleman-orders-table tbody tr:last-child td {
    border-bottom: none;
}

.gentleman-order-number {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
}

.gentleman-order-date {
    color: #6b7280;
    white-space: nowrap;
    font-size: 0.9375rem;
}

.gentleman-order-status {
    white-space: nowrap;
}

.gentleman-status-badge {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
}

.gentleman-status-badge.gentleman-order-status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.gentleman-status-badge.gentleman-order-status-processing {
    background-color: #fef3c7;
    color: #92400e;
}

.gentleman-status-badge.gentleman-order-status-on-hold {
    background-color: #dbeafe;
    color: #1e40af;
}

.gentleman-status-badge.gentleman-order-status-pending {
    background-color: #f3f4f6;
    color: #374151;
}

.gentleman-order-total {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    font-size: 1rem;
}

/* ============================================
   訂單管理頁面樣式
   ============================================ */

.gentleman-orders-management,
.gentleman-repairs-management {
    padding: 2rem;
}

.gentleman-orders-toolbar {
    margin-bottom: 2rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gentleman-search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.gentleman-search-box .material-symbols-outlined {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.25rem;
    pointer-events: none;
}

.gentleman-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    transition: all 0.2s ease;
    background-color: #fff;
}

.gentleman-search-input:focus {
    outline: none;
    border-color: #136dec;
    box-shadow: 0 0 0 3px rgba(19, 109, 236, 0.1);
}

.gentleman-filters-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.gentleman-filter-select,
.gentleman-filter-date {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background-color: #fff;
    color: #1f2937;
    transition: all 0.2s ease;
}

.gentleman-filter-select {
    min-width: 150px;
}

.gentleman-filter-date {
    min-width: 160px;
}

.gentleman-filter-select:focus,
.gentleman-filter-date:focus {
    outline: none;
    border-color: #136dec;
    box-shadow: 0 0 0 3px rgba(19, 109, 236, 0.1);
}

.gentleman-date-separator {
    color: #6b7280;
    font-weight: 500;
}

.gentleman-orders-list-container {
    margin-top: 2rem;
}

.gentleman-orders-loading-full {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    display: none;
}

.gentleman-orders-loading-full.show {
    display: block;
}

.gentleman-empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1rem;
}

/* 分頁樣式 */
.gentleman-pagination {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.gentleman-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gentleman-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #fff;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.gentleman-pagination-link:hover:not(.gentleman-pagination-disabled):not(.gentleman-pagination-active) {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.gentleman-pagination-link.gentleman-pagination-active {
    background-color: #136dec;
    border-color: #136dec;
    color: #fff;
    cursor: default;
}

.gentleman-pagination-link.gentleman-pagination-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f9fafb;
}

.gentleman-pagination-ellipsis {
    padding: 0 0.5rem;
    color: #6b7280;
    font-weight: 500;
}

.gentleman-pagination-info {
    text-align: center;
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.gentleman-order-actions {
    white-space: nowrap;
}

.gentleman-btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
}

/* ============================================
   報修管理頁面樣式
   ============================================ */

.gentleman-repairs-management {
    margin-top: 2rem;
}

.gentleman-repair-description {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gentleman-status-badge.gentleman-repair-status-pending {
    background-color: #f3f4f6;
    color: #374151;
}

.gentleman-status-badge.gentleman-repair-status-detecting {
    background-color: #dbeafe;
    color: #1e40af;
}

.gentleman-status-badge.gentleman-repair-status-quoting {
    background-color: #fef3c7;
    color: #92400e;
}

.gentleman-status-badge.gentleman-repair-status-quote_accepted {
    background-color: #ddd6fe;
    color: #5b21b6;
}

.gentleman-status-badge.gentleman-repair-status-processing {
    background-color: #fef3c7;
    color: #92400e;
}

.gentleman-status-badge.gentleman-repair-status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.gentleman-status-badge.gentleman-repair-status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ============================================
   設定頁面樣式
   ============================================ */

.gentleman-settings-form {
    padding: 2rem;
}

.gentleman-settings-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gentleman-settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.gentleman-settings-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.gentleman-settings-subtitle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #136dec, #3b82f6);
    border-radius: 2px;
}

.gentleman-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gentleman-form-group-checkbox {
    margin-bottom: 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.gentleman-form-group-checkbox:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.gentleman-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #374151;
}

.gentleman-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #136dec;
}

.gentleman-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   帳號詳細資料頁面樣式
   ============================================ */

.gentleman-profile-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.gentleman-profile-header .gentleman-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gentleman-profile-header .material-symbols-outlined {
    font-size: 1.125rem;
}

.gentleman-account-details {
    margin-top: 2rem;
}

.gentleman-details-loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.gentleman-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.gentleman-details-block {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gentleman-details-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #136dec 0%, #3b82f6 50%, #60a5fa 100%);
}

.gentleman-details-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.gentleman-details-block-title {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.75rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.gentleman-details-block-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #136dec, #3b82f6);
    border-radius: 2px;
}

.gentleman-details-block-title .material-symbols-outlined {
    font-size: 1.5rem;
    color: #136dec;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.gentleman-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gentleman-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.gentleman-details-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.gentleman-details-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.gentleman-details-item:last-child {
    border-bottom: none;
}

.gentleman-details-item-full {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.gentleman-details-label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.gentleman-details-item .gentleman-details-label::before {
    display: none;
}

.gentleman-details-item-full .gentleman-details-label {
    margin-bottom: 0;
}

.gentleman-details-value {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 500;
    word-break: break-word;
    text-align: left;
}

.gentleman-details-item-full .gentleman-details-value {
    width: 100%;
    line-height: 1.6;
    text-align: left;
    font-size: 0.9375rem;
    color: #334155;
}

/* 統計資訊特殊樣式 */
.gentleman-details-block:has(.gentleman-stats-item) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.gentleman-stats-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e0f2fe;
    transition: all 0.2s ease;
}

.gentleman-stats-item:hover {
    background: #f0f9ff;
    border-color: #7dd3fc;
    transform: scale(1.02);
}

.gentleman-stats-item .gentleman-details-label {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.gentleman-stats-item .gentleman-details-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #136dec;
    text-align: left;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .gentleman-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .gentleman-details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gentleman-details-block {
        padding: 1.5rem;
    }
    
    .gentleman-details-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gentleman-details-item {
        padding: 1rem;
    }
    
    .gentleman-details-value {
        text-align: left;
        width: 100%;
    }
    
    .gentleman-details-label {
        min-width: auto;
    }
    
    .gentleman-details-block-title {
        font-size: 1.125rem;
    }
    
    .gentleman-details-block-title .material-symbols-outlined {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.25rem;
    }
    
    .gentleman-stats-item .gentleman-details-value {
        font-size: 1.25rem;
    }
}

/* 報修記錄樣式 */
.gentleman-recent-repairs {
    margin-top: 3rem;
}

.gentleman-repairs-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    display: none;
}

.gentleman-repairs-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gentleman-repair-description {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gentleman-subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

/* 表格響應式已在上面統一處理 */

/* ============================================
   訂單詳情頁面樣式
   ============================================ */

.gentleman-order-error {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.gentleman-order-error p {
    color: #dc2626;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.gentleman-order-details-content {
    padding: 0;
}

.gentleman-order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gentleman-order-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gentleman-order-info-item label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gentleman-order-info-item p {
    font-size: 1rem;
    color: #111827;
    margin: 0;
}

.gentleman-order-total-large {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #136dec !important;
}

.gentleman-order-items-content {
    padding: 0;
    margin-top: 1.5rem;
}

.gentleman-order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gentleman-order-items-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
}

.gentleman-order-items-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gentleman-order-items-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    vertical-align: top;
    background: #ffffff;
}

.gentleman-order-items-table tbody tr:last-child td {
    border-bottom: none;
}

.gentleman-order-items-table tbody tr:hover td {
    background-color: #f8fafc;
}

.gentleman-order-item-name {
    font-weight: 500;
    color: #111827;
}

.gentleman-order-item-variation {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.gentleman-order-item-variation dl {
    margin: 0;
}

.gentleman-order-item-variation dt {
    display: inline;
    font-weight: 500;
}

.gentleman-order-item-variation dd {
    display: inline;
    margin-left: 0.25rem;
}

.gentleman-order-item-quantity {
    text-align: center;
}

.gentleman-order-item-price {
    text-align: right;
    font-weight: 500;
}

.gentleman-order-items-table tfoot tr {
    border-top: 2px solid #e5e7eb;
}

.gentleman-order-items-table tfoot td {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
}

.gentleman-order-subtotal td,
.gentleman-order-shipping td,
.gentleman-order-tax td {
    color: #6b7280;
}

.gentleman-order-total td {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.gentleman-order-addresses-content {
    padding: 0;
}

@media (max-width: 768px) {
    .gentleman-order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .gentleman-order-items-table {
        font-size: 0.875rem;
    }
    
    .gentleman-order-items-table th,
    .gentleman-order-items-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ============================================
   載入動畫
   ============================================ */

.gentleman-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.gentleman-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #136dec;
    border-top-color: transparent;
    border-radius: 50%;
    animation: gentleman-spin 0.6s linear infinite;
}

@keyframes gentleman-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   手機版側邊欄控制
   ============================================ */

/* 漢堡菜單按鈕 */
.gentleman-mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 10000;
    width: 48px;
    height: 48px;
    background: #136dec;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gentleman-mobile-menu-toggle:hover {
    background: #0d5bb8;
    transform: scale(1.05);
}

body.gentleman-sidebar-open .gentleman-mobile-menu-toggle {
    opacity: 0;
    pointer-events: none;
}

.gentleman-mobile-menu-toggle .material-symbols-outlined {
    font-size: 24px;
}

/* 側邊欄關閉按鈕 */
.gentleman-sidebar-header {
    display: none;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    justify-content: flex-end;
}

.gentleman-sidebar-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gentleman-sidebar-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.gentleman-sidebar-close .material-symbols-outlined {
    font-size: 24px;
}

/* 遮罩層 */
.gentleman-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gentleman-sidebar-overlay.gentleman-overlay-active {
    opacity: 1;
    pointer-events: all;
}

/* ============================================
   響應式設計
   ============================================ */

@media (max-width: 1024px) {
    /* 顯示漢堡菜單按鈕 */
    .gentleman-mobile-menu-toggle {
        display: flex;
    }
    
    /* 顯示側邊欄關閉按鈕 */
    .gentleman-sidebar-header {
        display: flex;
    }
    
    /* 顯示遮罩層 */
    .gentleman-sidebar-overlay {
        display: block;
    }
    
    .gentleman-account-layout {
        flex-direction: column !important;
    }
    
    .gentleman-account-sidebar {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        border-right: none !important;
        border-bottom: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .gentleman-account-sidebar.gentleman-sidebar-open {
        transform: translateX(0);
    }
    
    body.gentleman-sidebar-open {
        overflow: hidden;
    }
    
    .gentleman-account-main {
        position: relative;
        z-index: 1;
    }
    
    .gentleman-sidebar-content {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1.25rem;
    }
    
    .gentleman-sidebar-top {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        flex: initial;
        gap: 1rem;
        width: 100%;
    }
    
    .gentleman-user-info {
        margin-right: 0;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .gentleman-user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .gentleman-user-name {
        font-size: 1rem;
    }
    
    .gentleman-user-email {
        font-size: 0.8125rem;
    }
    
    .gentleman-sidebar-nav {
        flex-direction: column;
        margin-top: 0.5rem;
        margin-bottom: 0;
        flex: initial;
        overflow-x: visible;
        gap: 0.75rem;
    }
    
    .gentleman-sidebar-nav::-webkit-scrollbar {
        display: none;
    }
    
    .gentleman-nav-item {
        white-space: normal;
        padding: 0.9rem 1.1rem;
        font-size: 0.9375rem;
        min-width: auto;
        flex-shrink: initial;
    }
    
    .gentleman-nav-item .material-symbols-outlined {
        font-size: 18px;
        margin-right: 0.65rem;
    }
    
    .gentleman-sidebar-bottom {
        margin-left: 0.5rem;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        flex-shrink: 0;
    }
    
    .gentleman-nav-logout {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .gentleman-account-page-wrapper {
        padding: 0;
    }
    
    .gentleman-mobile-menu-toggle {
        top: 1rem;
        left: 1rem;
        width: 48px;
        height: 48px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .gentleman-mobile-menu-toggle .material-symbols-outlined {
        font-size: 24px;
    }
    
    .gentleman-account-sidebar {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
    }
    
    .gentleman-sidebar-header {
        padding: 1.25rem;
    }
    
    .gentleman-sidebar-close {
        width: 44px;
        height: 44px;
    }
    
    .gentleman-account-main {
        padding: 1.25rem !important;
        padding-top: 5rem !important;
        position: relative;
        z-index: 1;
    }
    
    .gentleman-main-container {
        max-width: 100%;
    }
    
    .gentleman-account-section {
        position: relative;
        z-index: 1;
    }
    
    .gentleman-welcome-section {
        padding: 1.5rem 0 2rem 0;
        margin-bottom: 2rem;
    }
    
    .gentleman-welcome-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .gentleman-welcome-desc {
        font-size: 0.9375rem;
        line-height: 1.6;
        color: #64748b;
    }
    
    .gentleman-account-section {
        margin-bottom: 2rem;
        border-radius: 1rem;
    }
    
    .gentleman-section-title {
        font-size: 1.25rem;
        padding: 1.25rem 1.5rem;
        line-height: 1.4;
    }
    
    .gentleman-dashboard-content {
        padding: 1.5rem;
    }
    
    .gentleman-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .gentleman-stats-item {
        padding: 1.5rem 1.25rem;
        border-radius: 0.875rem;
    }
    
    .gentleman-stats-item .gentleman-details-value {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .gentleman-stats-item .gentleman-details-label {
        font-size: 0.875rem;
    }
    
    .gentleman-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .gentleman-action-card {
        padding: 1.5rem 1.25rem;
        border-radius: 0.875rem;
        min-height: 100px;
    }
    
    .gentleman-action-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    
    .gentleman-action-label {
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.4;
    }
    
    .gentleman-address-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .gentleman-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .gentleman-form-row .gentleman-form-group {
        margin-bottom: 1.75rem;
    }
    
    .gentleman-form-group {
        margin-bottom: 1.75rem;
    }
    
    .gentleman-form-label {
        font-size: 0.9375rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        color: #1e293b;
    }
    
    .gentleman-form-control {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: 0.75rem;
        min-height: 48px;
        line-height: 1.5;
    }
    
    .gentleman-form-control:focus {
        border-color: #136dec;
        box-shadow: 0 0 0 3px rgba(19, 109, 236, 0.1);
    }
    
    .gentleman-profile-form,
    .gentleman-password-form {
        padding: 1.5rem;
    }
    
    .gentleman-form-actions {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        gap: 1rem;
    }
    
    .gentleman-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 0.75rem;
        min-height: 48px;
        transition: all 0.2s ease;
    }
    
    .gentleman-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .gentleman-orders-management,
    .gentleman-repairs-management {
        padding: 1.5rem;
    }
    
    .gentleman-orders-toolbar {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.25rem;
        border-radius: 1rem;
    }
    
    .gentleman-search-box {
        width: 100%;
    }
    
    .gentleman-search-box input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 0.75rem;
    }
    
    .gentleman-filters-row {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }
    
    .gentleman-filter-select,
    .gentleman-filter-date {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 0.75rem;
    }
    
    .gentleman-settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gentleman-settings-form {
        padding: 1.5rem;
    }
    
    .gentleman-settings-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .gentleman-settings-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .gentleman-form-group-checkbox {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }
    
    .gentleman-details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gentleman-details-block {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .gentleman-details-block-title {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .gentleman-details-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gentleman-details-item {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }
    
    .gentleman-details-label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .gentleman-details-value {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .gentleman-orders-table-wrapper,
    .gentleman-repairs-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .gentleman-orders-table,
    .gentleman-repairs-table-wrapper table {
        min-width: 600px;
        font-size: 0.875rem;
    }
    
    .gentleman-orders-table th,
    .gentleman-orders-table td,
    .gentleman-repairs-table-wrapper table th,
    .gentleman-repairs-table-wrapper table td {
        padding: 0.75rem 0.5rem;
    }
    
    .gentleman-order-items-table {
        font-size: 0.875rem;
    }
    
    .gentleman-order-items-table th,
    .gentleman-order-items-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 640px) {
    .gentleman-mobile-menu-toggle {
        top: 50%;
        left: auto;
        right: 0.85rem;
        width: 50px;
        height: 50px;
        border-radius: 9999px;
        box-shadow: 0 18px 30px rgba(15, 23, 42, 0.2);
        transform: translate3d(0, -50%, 0);
    }
    
    .gentleman-mobile-menu-toggle .material-symbols-outlined {
        font-size: 24px;
    }

    .gentleman-mobile-menu-toggle:hover {
        transform: translate3d(0, -50%, 0) scale(1.05);
    }
    
    .gentleman-account-sidebar {
        width: min(92vw, 340px) !important;
        min-width: 0 !important;
        max-width: min(92vw, 340px) !important;
        height: auto !important;
        max-height: calc(100vh - 3.5rem) !important;
        top: 50% !important;
        left: 50% !important;
        border-radius: 1.1rem !important;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
        transform: translate(-50%, -55%) scale(0.92);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.28s ease, opacity 0.28s ease;
    }

    .gentleman-account-sidebar.gentleman-sidebar-open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: auto;
    }
    
    .gentleman-sidebar-header {
        padding: 1rem;
    }
    
    .gentleman-sidebar-close {
        width: 40px;
        height: 40px;
    }
    
    .gentleman-account-main {
        padding: 1rem !important;
        padding-top: 4.25rem !important;
        position: relative;
        z-index: 1;
    }
    
    .gentleman-sidebar-content {
        flex-direction: column;
        padding: 1rem;
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
    }
    
    .gentleman-sidebar-top {
        flex-direction: column;
        width: 100%;
    }
    
    .gentleman-user-info {
        margin-right: 0;
        margin-bottom: 1.5rem;
        width: 100%;
        padding: 1rem;
    }
    
    .gentleman-user-avatar {
        width: 48px;
        height: 48px;
    }
    
    .gentleman-user-name {
        font-size: 1.125rem;
    }
    
    .gentleman-user-email {
        font-size: 0.875rem;
    }
    
    .gentleman-sidebar-nav {
        flex-direction: column;
        width: 100%;
        overflow-x: visible;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .gentleman-nav-item {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 0.75rem;
    }
    
    .gentleman-nav-item .material-symbols-outlined {
        font-size: 22px;
    }
    
    .gentleman-sidebar-bottom {
        margin-left: 0;
        width: 100%;
        padding-top: 1.5rem;
        border-top: 1px solid #e5e7eb;
    }
    
    .gentleman-nav-logout {
        width: 100%;
        padding: 1rem 1.25rem;
        min-height: 48px;
        font-size: 1rem;
    }
    
    .gentleman-welcome-section {
        padding: 1.25rem 0 1.75rem 0;
        margin-bottom: 1.75rem;
    }
    
    .gentleman-welcome-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .gentleman-welcome-desc {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .gentleman-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.95rem;
    }
    
    .gentleman-stats-item {
        padding: 1.25rem;
    }
    
    .gentleman-stats-item .gentleman-details-value {
        font-size: 1.5rem;
    }
    
    .gentleman-actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gentleman-action-card {
        padding: 1.25rem;
        min-height: 90px;
    }
    
    .gentleman-action-icon {
        width: 44px;
        height: 44px;
    }
    
    .gentleman-action-label {
        font-size: 0.9375rem;
    }
    
    .gentleman-dashboard-content {
        padding: 1.25rem;
    }
    
    .gentleman-section-title {
        font-size: 1.125rem;
        padding: 1.25rem;
        line-height: 1.4;
    }
    
    .gentleman-account-section {
        border-radius: 0.875rem;
        margin-bottom: 1.75rem;
    }
    
    .gentleman-details-block {
        padding: 1.25rem;
    }
    
    .gentleman-details-block-title {
        font-size: 1.0625rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }
    
    .gentleman-details-item {
        padding: 1rem;
    }
    
    .gentleman-details-label {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }
    
    .gentleman-details-value {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .gentleman-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.25rem;
    }
    
    .gentleman-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
        min-height: 44px;
        width: 100%;
    }
    
    .gentleman-form-group {
        margin-bottom: 1.5rem;
    }
    
    .gentleman-form-label {
        font-size: 0.875rem;
        margin-bottom: 0.625rem;
    }
    
    .gentleman-form-control {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        min-height: 44px;
        border-radius: 0.625rem;
    }
    
    .gentleman-input-with-icon {
        height: 44px;
        padding-left: 2.75rem !important;
        padding-right: 1rem !important;
    }
    
    .gentleman-input-icon {
        left: 0.875rem;
        font-size: 20px;
    }
    
    .gentleman-profile-form,
    .gentleman-password-form {
        padding: 1.25rem;
    }
    
    .gentleman-form-actions {
        margin-top: 2rem;
        padding-top: 1.25rem;
        flex-direction: column;
        gap: 0.875rem;
    }
    
    .gentleman-form-actions .gentleman-btn {
        width: 100%;
    }
    
    .gentleman-orders-toolbar {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .gentleman-orders-management,
    .gentleman-repairs-management {
        padding: 1.25rem;
    }
    
    .gentleman-settings-form {
        padding: 1.25rem;
    }
    
    .gentleman-settings-section {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .gentleman-settings-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .gentleman-form-group-checkbox {
        padding: 1rem;
    }
    
    .gentleman-timeline {
        padding-left: 1.25rem;
    }
    
    .gentleman-timeline-marker {
        left: -1.25rem;
        width: 28px;
        height: 28px;
    }
    
    .gentleman-timeline-marker .material-symbols-outlined {
        font-size: 16px;
    }
    
    .gentleman-timeline-line {
        left: -1.1rem;
    }
    
    .gentleman-timeline-title {
        font-size: 0.9375rem;
    }
    
    .gentleman-timeline-date {
        font-size: 0.8125rem;
    }
    
    .gentleman-timeline-description {
        font-size: 0.875rem;
    }
    
    .gentleman-pagination-wrapper {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .gentleman-pagination-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        min-width: 36px;
    }
    
    .gentleman-btn-small {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .gentleman-status-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
    }
    
    .gentleman-orders-table-wrapper,
    .gentleman-repairs-table-wrapper {
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
    }
    
    .gentleman-orders-table,
    .gentleman-repairs-table-wrapper table {
        min-width: 500px;
        font-size: 0.8125rem;
    }
    
    .gentleman-orders-table th,
    .gentleman-orders-table td,
    .gentleman-repairs-table-wrapper table th,
    .gentleman-repairs-table-wrapper table td {
        padding: 0.625rem 0.375rem;
    }
}

