.account-page{padding:40px 0 70px;direction:rtl}
.ilp-auth{max-width:480px;margin:0 auto;background:#fff;border:1px solid #eee;border-radius:12px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.04)}
.ilp-auth-tabs{display:flex;border-bottom:1px solid #eee;background:#fafafa}
.ilp-auth-tab{flex:1;border:0;background:transparent;padding:14px 8px;font-size:14px;font-weight:600;cursor:pointer;color:#666}
.ilp-auth-tab.is-active{background:#fff;color:#111;box-shadow:inset 0 -2px 0 #111}
.ilp-auth-panel{padding:24px 22px 28px}
.ilp-auth-form label{display:block;font-size:13px;font-weight:600;margin:12px 0 6px;color:#444}
.ilp-auth-form input[type=text],.ilp-auth-form input[type=email],.ilp-auth-form input[type=tel],.ilp-auth-form input[type=password]{width:100%;padding:11px 12px;border:1px solid #ddd;border-radius:8px;font-size:14px;box-sizing:border-box}
.ilp-auth-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ilp-auth-hint{font-size:13px;color:#666;margin:0 0 8px;line-height:1.6}
.ilp-check{display:flex!important;align-items:center;gap:8px;font-weight:500!important;margin-top:14px!important}
.ilp-auth-btn{display:block;width:100%;margin-top:16px;background:#111;color:#fff;border:0;border-radius:8px;padding:12px;font-size:14px;font-weight:600;cursor:pointer}
.ilp-auth-btn:hover{background:#e94560}
.ilp-auth-btn:disabled{opacity:.6;cursor:wait}
.ilp-auth-btn-ghost{background:#f5f5f5;color:#333;margin-top:8px}
.ilp-auth-btn-ghost:hover{background:#eee;color:#111}
.ilp-auth-msg{min-height:20px;margin:12px 0 0;font-size:13px}
.ilp-auth-msg.is-err{color:#c62828}
.ilp-auth-msg.is-ok{color:#2e7d32}
.account-wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.account-header{margin-bottom:28px}
.account-title{font-size:26px;font-weight:700;margin:0 0 8px;color:#111}
.account-welcome{font-size:14px;color:#666;margin:0}

/* RTL: first in DOM = right side = sidebar */
.account-layout{
	display:flex;
	flex-direction:row;
	gap:24px;
	align-items:flex-start;
}
.account-nav{
	flex:0 0 260px;
	background:#fff;
	border:1px solid #eee;
	border-radius:12px;
	padding:16px 12px;
	position:sticky;
	top:20px;
	box-shadow:0 2px 10px rgba(0,0,0,.03);
}
.account-nav-user{
	display:flex;
	align-items:center;
	gap:12px;
	padding:8px 10px 16px;
	border-bottom:1px solid #f0f0f0;
	margin-bottom:10px;
}
.account-avatar{
	width:44px;height:44px;border-radius:50%;
	background:#111;color:#fff;
	display:flex;align-items:center;justify-content:center;
	font-weight:700;font-size:18px;flex-shrink:0;
}
.account-nav-user-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.account-nav-name{font-size:14px;font-weight:700;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-nav-email{font-size:12px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-nav-list{list-style:none;margin:0;padding:0}
.account-nav-list li{margin:0 0 4px}
.account-nav-list a{
	display:flex;align-items:center;gap:10px;
	padding:11px 12px;border-radius:8px;
	font-size:14px;color:#333;
	transition:background .15s,color .15s;
}
.account-nav-list a:hover{background:#f7f7f7;color:#e94560}
.account-nav-list li.is-active a{background:#111;color:#fff}
.account-nav-logout a{color:#e94560}
.account-nav-logout a:hover{background:#fff0f3;color:#c62840}

.account-nav-icon{
	width:18px;height:18px;flex-shrink:0;display:inline-block;
	background-color:currentColor;
	-webkit-mask-size:contain;mask-size:contain;
	-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
	-webkit-mask-position:center;mask-position:center;
}
.account-nav-icon-dashboard{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E")}
.account-nav-icon-cart{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E")}
.account-nav-icon-download{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E")}
.account-nav-icon-user{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E")}
.account-nav-icon-logout{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E")}

.account-content{
	flex:1;min-width:0;
	background:#fff;
	border:1px solid #eee;
	border-radius:12px;
	padding:28px 26px;
	box-shadow:0 2px 10px rgba(0,0,0,.03);
}
.account-panel h2{font-size:18px;font-weight:700;margin:0 0 8px;color:#111}
.account-panel-desc{font-size:13.5px;color:#666;margin:0 0 20px}
.account-dash-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}
.account-dash-card{
	display:flex;flex-direction:column;gap:6px;
	padding:18px;border:1px solid #eee;border-radius:10px;background:#fafafa;
	transition:border-color .15s,box-shadow .15s;
}
.account-dash-card:hover{border-color:#e94560;box-shadow:0 4px 14px rgba(0,0,0,.06)}
.account-dash-card .dash-label{font-size:15px;font-weight:700;color:#111}
.account-dash-card .dash-desc{font-size:12.5px;color:#777}
.account-user-meta{margin-top:12px;font-size:14px;color:#444}
.account-user-meta p{margin:0 0 8px}

.account-auth-grid{max-width:420px;margin:0 auto}
.account-auth-card{background:#fff;border:1px solid #eee;border-radius:12px;padding:28px 24px;box-shadow:0 2px 10px rgba(0,0,0,.03)}
.account-auth-card h2{font-size:20px;margin:0 0 18px;text-align:center}
.account-login-card label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:#444}
.account-login-card input[type=text],
.account-login-card input[type=password]{
	width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:8px;
	font-size:14px;margin-bottom:12px;box-sizing:border-box
}
.account-login-card input[type=submit],
.account-login-card .button{
	width:100%;background:#111;color:#fff;border:none;border-radius:8px;
	padding:12px;font-size:14px;font-weight:600;cursor:pointer
}
.account-login-card input[type=submit]:hover{background:#e94560}
.account-auth-links{text-align:center;margin-top:16px;font-size:13px}
.account-auth-links a{color:#e94560}
.account-auth-links .sep{margin:0 8px;color:#ccc}

.account-content table{width:100%;border-collapse:collapse;font-size:13.5px}
.account-content table th,
.account-content table td{padding:12px 10px;border-bottom:1px solid #f0f0f0;text-align:right}
.account-content table th{background:#fafafa;font-weight:600}
.account-content .edd_form fieldset,
.account-content #edd_profile_editor_form fieldset{
	border:1px solid #eee;border-radius:8px;padding:16px;margin-bottom:16px
}
.account-content .edd_form input[type=text],
.account-content .edd_form input[type=email],
.account-content .edd_form input[type=password],
.account-content #edd_profile_editor_form input[type=text],
.account-content #edd_profile_editor_form input[type=email],
.account-content #edd_profile_editor_form input[type=password]{
	width:100%;max-width:420px;padding:10px 12px;border:1px solid #ddd;
	border-radius:8px;font-size:14px;margin-bottom:10px;box-sizing:border-box
}
.account-content .edd_form input[type=submit],
.account-content #edd_profile_editor_form input[type=submit]{
	background:#e94560;color:#fff;border:none;border-radius:8px;
	padding:11px 22px;font-weight:600;cursor:pointer
}
.account-content .edd_form input[type=submit]:hover,
.account-content #edd_profile_editor_form input[type=submit]:hover{background:#d63851}

/* Purchases: left-align date & amount */
.account-content table td.ilp-col-left,
.account-content table th.ilp-col-left{text-align:left!important;direction:ltr}

/* Downloads buttons — compact like confirmation */
.account-downloads .ilp-dl-actions,
.ilp-dl-actions{display:inline-flex!important;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start}
.account-downloads .ilp-dl-btn,
.ilp-dl-btn{
	display:inline-flex!important;align-items:center;justify-content:center;gap:6px;
	width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;
	padding:8px 14px!important;margin:0!important;
	background:#e94560!important;color:#fff!important;
	border:none!important;border-radius:8px!important;
	text-decoration:none!important;font-size:13px!important;font-weight:600!important;
	line-height:1.2!important;white-space:nowrap!important;
	box-shadow:none!important
}
.account-downloads .ilp-dl-btn:hover,
.ilp-dl-btn:hover{background:#d63851!important;color:#fff!important}
.account-downloads .ilp-dl-btn svg,
.ilp-dl-btn svg{
	width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important;
	flex-shrink:0;display:block!important
}
.account-downloads .ilp-dl-btn span,
.ilp-dl-btn span{font-size:13px!important;line-height:1!important}
/* hide leftover EDD icons only, never hide product name links */
.account-downloads td img{display:none!important}
.account-downloads .ilp-product-link,
.account-downloads .ilp-product-name-text{
	display:inline!important;font-size:13.5px!important;line-height:1.5!important;
	font-weight:600;color:#1a1a2e;visibility:visible!important;opacity:1!important
}
.account-downloads .ilp-product-link:hover{color:#e94560}
.ilp-product-link{color:#1a1a2e;font-weight:600;text-decoration:none}
.ilp-product-link:hover{color:#e94560}
.ilp-product-name-text{font-weight:600;color:#1a1a2e}
.ilp-status-failed{color:#e94560;font-weight:600;font-size:13px}

/* Profile: 2 columns side by side (name | password) */
.ilp-profile-form{
	display:grid!important;
	grid-template-columns:1fr 1fr;
	gap:16px 20px;
	align-items:start;
	direction:rtl
}
.ilp-profile-form > fieldset{
	border:1px solid #eee!important;border-radius:12px!important;
	padding:18px 16px!important;margin:0!important;
	background:#fafbfc;
	min-width:0
}
.ilp-profile-form > fieldset[style*="display: none"],
.ilp-profile-form > fieldset[hidden]{display:none!important}
.ilp-profile-form legend{
	font-size:14px!important;font-weight:700!important;color:#1a1a2e!important;padding:0 6px
}
.ilp-profile-form p,
.ilp-profile-form .edd-form-group{
	display:block;margin:0 0 12px
}
.ilp-profile-form label{
	display:block;font-size:13px;font-weight:600;color:#444;margin:0 0 6px
}
.ilp-profile-form input[type=text],
.ilp-profile-form input[type=email],
.ilp-profile-form input[type=password],
.ilp-profile-form select{
	width:100%!important;max-width:none!important;box-sizing:border-box;
	padding:10px 12px;border:1px solid #ddd;border-radius:8px;font-size:14px
}
/* submit spans full width under both columns */
.ilp-profile-form #edd_profile_submit_fieldset,
.ilp-profile-form > p:has(input[type=submit]),
.ilp-profile-form > .ilp-profile-submit{
	grid-column:1 / -1;
	display:flex!important;justify-content:flex-start;margin-top:4px;
	border:none!important;background:transparent!important;padding:0!important
}
.ilp-profile-form input[type=submit]{
	background:#e94560!important;color:#fff!important;border:none;border-radius:8px;
	padding:11px 28px;font-weight:600;cursor:pointer;width:auto!important
}
.ilp-profile-form input[type=submit]:hover{background:#d63851!important}
@media (max-width:768px){
	.ilp-profile-form{grid-template-columns:1fr}
}

@media (max-width:768px){
	.account-layout{flex-direction:column}
	.account-nav{flex:1 1 100%;width:100%;position:static}
	.account-nav-list{display:flex;flex-wrap:wrap;gap:6px}
	.account-nav-list a{padding:10px 12px;font-size:13px}
	.account-dash-cards{grid-template-columns:1fr}
	.account-content{padding:18px 16px}
}
