/* Account Pages - Modern Professional Design */

/* ========================================
   ACCOUNT TABS NAVIGATION - ENHANCED
   ======================================== */

.account-tabs-container {
    margin-bottom: 30px;
}

.account-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
}

.account-tabs li {
    margin: 0;
    flex-shrink: 0;
}

.account-tabs li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 4px solid transparent;
    border-radius: 8px 8px 0 0;
    margin-bottom: -2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

.account-tabs li a i {
    font-size: 16px;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Premium hover effect */
.account-tabs li a:hover {
    color: #111827;
    background: linear-gradient(to bottom, #f9fafb 0%, rgba(249, 250, 251, 0.5) 100%);
    border-bottom-color: #d1d5db;
}

.account-tabs li a:hover i {
    color: #67a552;
    transform: scale(1.1);
}

/* Enhanced active state */
.account-tabs li.active a {
    color: #67a552;
    border-bottom-color: #67a552;
    font-weight: 700;
    background: linear-gradient(to bottom, rgba(103, 165, 82, 0.08) 0%, rgba(103, 165, 82, 0.02) 100%);
    letter-spacing: 0.2px;
}

.account-tabs li.active a i {
    color: #67a552;
    transform: scale(1.05);
}

/* Responsive Tabs */
@media (max-width: 991px) {
    .account-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .account-tabs li a {
        padding: 14px 20px;
        font-size: 13px;
    }

    .account-tabs li a i {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .account-tabs {
        flex-direction: column;
        border-bottom: none;
        gap: 4px;
        background: #f9fafb;
        border-radius: 8px;
        padding: 8px;
    }

    .account-tabs li {
        width: 100%;
    }

    .account-tabs li a {
        border-bottom: none;
        border-left: 3px solid transparent;
        border-radius: 6px;
        margin-bottom: 0;
        padding: 12px 16px;
    }

    .account-tabs li.active a {
        border-bottom-color: transparent;
        border-left-color: #67a552;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
}

/* ========================================
   CONTACT CARDS SELECTION
   ======================================== */

.contacts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.contacts-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contacts-header h2 i {
    color: #67a552;
    font-size: 22px;
}

.contact-cards {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.contact-cards li {
    margin: 0;
}

.contact-cards li a {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-cards li a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #67a552;
    transition: all 0.3s ease;
}

.contact-cards li a:hover {
    box-shadow: 0 8px 24px rgba(103, 165, 82, 0.15);
    transform: translateY(-4px);
    border-color: #67a552;
    background: linear-gradient(135deg, #ffffff 0%, rgba(103, 165, 82, 0.02) 100%);
}

.contact-cards li a:hover:before {
    width: 6px;
}

/* Active Contact Card */
.contact-cards li.active a {
    border-color: #67a552;
    background: linear-gradient(135deg, #ffffff 0%, rgba(103, 165, 82, 0.05) 100%);
    box-shadow: 0 4px 16px rgba(103, 165, 82, 0.2);
}

.contact-cards li.active a:before {
    width: 6px;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 22px;
    background: rgba(103, 165, 82, 0.1);
    color: #67a552;
}

.contact-card-header strong {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    flex: 1;
}

.contact-card-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
    padding-left: 64px;
}

.contact-card-email i {
    font-size: 14px;
    color: #9ca3af;
}

/* Empty State */
.contact-cards-empty {
    grid-column: 1 / -1;
}

.contact-cards-empty .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 20px;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    text-align: center;
}

.contact-cards-empty .empty-state i {
    font-size: 48px;
    color: #d1d5db;
}

.contact-cards-empty .empty-state p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    max-width: 400px;
}

/* ========================================
   ACCOUNT FORM CONTAINER
   ======================================== */

.account-form {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    margin-bottom: 30px;
}

.account-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.account-form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-form-full {
    grid-column: 1 / -1;
}

/* ========================================
   CONTACT SELECTOR
   ======================================== */

.contact-selector {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-selector p {
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-selector select {
    background: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    min-width: 250px;
}

.contact-selector .btn {
    background: #ffffff;
    color: #2563eb;
    border: none;
}

.contact-selector .btn:hover {
    background: #f3f4f6;
}

/* ========================================
   SUBACCOUNT FIELDS
   ======================================== */

.subaccount-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 24px;
    margin-top: 20px;
    border: 1px solid #e5e7eb;
}

.subaccount-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
}

/* Inputs List - Legacy Support */
.inputs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.inputs-list li {
    margin: 0;
}

.inputs-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inputs-list label:hover {
    border-color: #67a552;
    background: #f9fafb;
}

.inputs-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.inputs-list input[type="checkbox"]:checked ~ span {
    color: #67a552;
    font-weight: 500;
}

/* Permissions Grid */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.permissions-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.permissions-grid label:hover {
    border-color: #67a552;
    background: #f9fafb;
}

.permissions-grid input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.permissions-grid input[type="checkbox"]:checked + span {
    color: #67a552;
    font-weight: 500;
}

/* Email Preferences */
.email-preferences {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-preferences label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.email-preferences label:hover {
    border-color: #67a552;
    background: #f9fafb;
}

.email-preferences input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.email-preferences input[type="checkbox"]:checked + span {
    color: #67a552;
    font-weight: 500;
}

/* ========================================
   PASSWORD CHANGE
   ======================================== */

.password-form .control-group {
    margin-bottom: 20px;
}

/* ========================================
   ACCESS DENIED
   ======================================== */

.access-denied {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
}

.access-denied-icon {
    font-size: 64px;
    color: #ef4444;
    margin-bottom: 20px;
}

.access-denied h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.access-denied p {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 24px 0;
}

.access-denied .btn {
    margin-top: 20px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .account-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .permissions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .account-form {
        padding: 20px;
    }

    .account-form-grid {
        gap: 16px;
    }

    .contact-selector {
        padding: 16px;
    }

    .contact-selector select {
        width: 100%;
        min-width: 100%;
    }

    .subaccount-section {
        padding: 16px;
    }

    .inputs-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contacts-header {
        flex-direction: column;
        align-items: stretch;
    }

    .contacts-header .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-cards li a {
        padding: 20px;
        gap: 14px;
    }

    .contact-card-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .account-form {
        padding: 16px;
    }

    .access-denied {
        padding: 40px 20px;
    }

    .access-denied-icon {
        font-size: 48px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .account-form,
    .subaccount-section,
    .access-denied {
        box-shadow: none;
        border: 1px solid #000;
    }

    .contact-selector {
        background: #ffffff;
        border: 1px solid #000;
        color: #000;
    }

    .form-actions {
        display: none;
    }
}

/* ========================================
   TWO-FACTOR AUTHENTICATION
   ======================================== */

.twofa-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    margin-bottom: 30px;
    text-align: center;
}

.twofa-container p {
    margin-bottom: 20px;
    line-height: 1.6;
}

#twofaactivation {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
}

/* Security Questions */
.security-questions-form {
    max-width: 600px;
    margin: 30px auto 0;
}

/* ========================================
   SECURITY QUESTIONS PAGE
   ======================================== */

.security-questions-card {
    margin: 0 auto;
}

.security-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-form-fields .control-group {
    margin-bottom: 0;
}

/* ========================================
   CANCEL REQUEST PAGE
   ======================================== */

.cancel-request-card {
    margin: 0 auto;
}

.cancel-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cancel-form-fields .control-group {
    margin-bottom: 0;
}

/* Domain Cancel Notice */
.domain-cancel-notice {
    padding: 20px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-top: 8px;
}

.domain-cancel-notice__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.domain-cancel-notice__header i {
    font-size: 20px;
    color: #f59e0b;
}

.domain-cancel-notice__header strong {
    font-size: 15px;
    font-weight: 600;
    color: #92400e;
}

.domain-cancel-notice p {
    margin: 0 0 16px 0;
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
}

.domain-cancel-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.domain-cancel-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.domain-cancel-checkbox span {
    font-size: 14px;
    color: #92400e;
    font-weight: 500;
}

/* Cancel Footer */
.cancel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================
   RESPONSIVE - ACCOUNT PAGES
   ======================================== */

@media (max-width: 767px) {
    .security-form-fields,
    .cancel-form-fields {
        gap: 16px;
    }

    .domain-cancel-notice {
        padding: 16px;
    }

    .cancel-footer {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .cancel-footer .btn {
        width: 100%;
    }
}
