/* Account System Styles */

/* Error Messages */
.error-message {
    background: #ff4444;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    word-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    overflow-wrap: break-word;
}

.success-message {
    background: #10b981;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    word-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Auth Section (Login/Register) */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    background: var(--primary-bg);
}

.auth-container {
    max-width: 500px;
    width: 100%;
}

.auth-box {
    background: var(--primary-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 40px;
    animation: fadeInUp 0.5s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.form-row .form-group {
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 14px 16px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--gradient-primary);
    border-color: var(--accent-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: black;
    font-weight: bold;
    font-size: 12px;
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Terms and Privacy links in checkbox */
.terms-link {
    color: var(--accent-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--primary-bg);
    padding: 0 15px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    width: 100%;
    justify-content: center;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-social:hover {
    background: var(--accent-bg);
    border-color: var(--accent-color);
}

.btn-social.google:hover {
    border-color: #4285f4;
}

.btn-social.apple:hover {
    border-color: #000;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Account Dashboard */
.account-section {
    padding: 100px 0 60px;
    background: var(--primary-bg);
    min-height: 100vh;
}

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.2rem;
    color: black;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 5px 0;
}

.stat-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Sidebar */
.account-sidebar {
    background: var(--primary-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-profile {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    color: black;
}

.user-profile h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
    text-align: center;
}

.user-profile p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0 10px;
    line-height: 1.4;
}

/* Purchase Item Styles */
.purchase-item {
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.purchase-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.purchase-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.purchase-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.purchase-details {
    text-align: right;
}

.purchase-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.purchase-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.purchase-status.status-paid,
.purchase-status.paid {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.purchase-status.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.purchase-items {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.item-name {
    flex: 1;
    color: var(--text-primary);
}

.item-quantity {
    margin: 0 15px;
    color: var(--text-secondary);
}

.item-price {
    font-weight: 600;
    color: var(--accent-color);
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.account-nav .nav-item:hover {
    background: var(--tertiary-bg);
    color: var(--text-primary);
}

.account-nav .nav-item.active {
    background: var(--accent-bg);
    color: var(--accent-color);
}

.account-nav .nav-item i {
    font-size: 1.1rem;
    width: 20px;
}

.account-nav .nav-item.logout {
    color: #ff5f57;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Main Content */
.account-content {
    background: var(--primary-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 40px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.account-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.account-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: black;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Purchase History */
.purchase-item {
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.purchase-item:hover {
    border-color: var(--accent-color);
}

.purchase-info {
    flex: 1;
}

.purchase-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.purchase-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.purchase-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 20px;
}

.download-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Payment Methods */
.payment-card {
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    width: 50px;
    height: 35px;
    background: var(--gradient-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: black;
}

.card-details h4 {
    color: var(--text-primary);
    margin-bottom: 3px;
}

.card-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.card-actions button {
    padding: 8px 15px;
    font-size: 0.85rem;
}

.add-payment-btn {
    margin-top: 20px;
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.settings-section {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-of-type {
    border-bottom: none;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Expandable Purchase Details */
.purchase-header {
    cursor: pointer;
    transition: background-color 0.2s;
    align-items: flex-start;
}

.purchase-header:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.purchase-toggle {
    font-size: 0.8rem;
    margin-right: 10px;
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.purchase-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid transparent;
}

.purchase-expanded.active {
    max-height: 1000px;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
}

.expanded-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 15px;
}

.expanded-section:last-child {
    margin-bottom: 0;
}

.expanded-section h4 {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item:first-child {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-all;
}

.info-value.copyable {
    cursor: pointer;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
    display: block;
    width: 100%;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    word-break: break-all;
    line-height: 1.6;
}

.info-value.copyable:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.info-value.copyable:active {
    transform: translateY(0);
}

.info-value.copyable::after {
    content: '📋 Click to copy';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

.info-value.copyable:hover::after {
    opacity: 1;
}

.info-value.copyable.copied {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.copy-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.purchase-items-detailed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-row-detailed {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.item-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.item-name {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.item-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.item-pricing {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.item-quantity {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.item-unit-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.item-total {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* ======================================
   PURCHASE ACCORDION - FAQ STYLE
   ====================================== */

/* Purchase Accordion Item */
.purchase-accordion-item {
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.purchase-accordion-item.active {
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Header - Full Width Clickable */
.purchase-accordion-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.purchase-accordion-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.purchase-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.purchase-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.purchase-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.purchase-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.purchase-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.purchase-arrow {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Expanded Content */
.purchase-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.purchase-accordion-content.active {
    max-height: 2000px;
    opacity: 1;
}

.accordion-inner {
    padding: 0 20px 20px 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Info Sections */
.info-section {
    margin-bottom: 20px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.9;
}

.info-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.info-text.total-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Info Grid Container */
.info-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Order ID Box */
.order-id-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.order-id-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.order-id-box:active {
    transform: translateY(0);
}

.order-id-box.copied {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.order-id-text {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.6;
    flex: 1;
}

.copy-icon {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.order-id-box:hover .copy-icon {
    color: var(--accent-color);
}

/* License Key Cards */
.license-key-card {
    background: var(--tertiary-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.license-key-card:hover {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.05);
}

.license-key-card.activated {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.license-key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.license-product {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.license-product i {
    color: var(--accent-color);
}

.license-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.license-status.activated {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.license-status.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.license-key-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.license-key-display {
    background: var(--primary-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 15px;
    min-width: 0;
}

.license-key-display:hover {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.license-key-display:active {
    transform: translateY(0) scale(0.98);
}

.license-key-display.copied {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.license-key-display code {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    flex: 1;
    word-break: break-all;
    overflow-wrap: anywhere;
    min-width: 0;
    line-height: 1.4;
}

.license-key-display i {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.license-key-display:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.license-key-display.copied i {
    color: #10b981;
}

.license-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
}

.license-meta small {
    font-size: 0.85rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.license-meta i {
    font-size: 0.9rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    width: auto;
    display: inline-flex;
}

/* Items Section */
.items-section {
    margin-top: 20px;
}

.item-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.item-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-row .item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.item-row .item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.item-qty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-row .item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

.order-info-section:last-child,
.items-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Detail Row Structure */
.detail-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row.full-width {
    margin-bottom: 20px;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-value.amount {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Order ID Box - Copyable */
.order-id-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
}

.order-id-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.order-id-box:active {
    transform: translateY(0);
}

.order-id-box.copied {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.order-id-text {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.6;
    flex: 1;
}

.copy-icon {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.order-id-box:hover .copy-icon {
    color: var(--accent-color);
}

/* Details Grid for Date, Status, Amount */
.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-paid {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Items Section */
.item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.item-card:last-child {
    margin-bottom: 0;
}

.item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-card .item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-card .item-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.item-card .item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.item-qty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-card .item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Responsive Grid - Tablet and Above */
@media (min-width: 768px) {
    .info-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .purchase-summary {
        gap: 20px;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .purchase-accordion-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .purchase-summary {
        width: 100%;
        justify-content: space-between;
    }
    
    .purchase-amount {
        font-size: 1.1rem;
    }
    
    .accordion-inner {
        padding: 15px;
    }
    
    .order-id-text {
        font-size: 0.8rem;
    }
    
    .item-row {
        flex-direction: column;
    }
    
    .item-row .item-pricing {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .item-pricing {
        justify-content: flex-start;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .auth-box {
        padding: 30px 25px;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .account-content {
        padding: 25px 20px;
    }

    .account-content h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .purchase-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .payment-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .auth-header h1 {
        font-size: 1.8rem;
    }

    .account-content h1 {
        font-size: 1.8rem;
    }
}
